]> Cypherpunks repositories - gostls13.git/commit
time: use "2006-01-02 15:04:05.999999999 -0700 MST" as String format
authorRuss Cox <rsc@golang.org>
Tue, 14 Feb 2012 16:17:48 +0000 (11:17 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 14 Feb 2012 16:17:48 +0000 (11:17 -0500)
commitd599accafa0ddd1a598f87c419099f82d5910004
tree952284cee03f41702f7ccbadddf4c1d3bca6ad37
parentc2e58dc568093cb0d8967d62e7081aa2781de89f
time: use "2006-01-02 15:04:05.999999999 -0700 MST" as String format

This change shows all the information present
in the Time value (now including fractional seconds)
and also arranges the fields so that, within a single time zone,
string comparison and time comparison agree.

R=golang-dev, rogpeppe, r
CC=golang-dev
https://golang.org/cl/5654078
src/pkg/time/example_test.go
src/pkg/time/format.go