diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2017-06-28 22:07:06 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-06-29 03:29:22 +0000 |
commit | 306c540a28a31b38709eaee57b74ac109dec83a6 (patch) | |
tree | d30a663d90218b3bfcf4e3c7539043f587c62e98 /src/time/format.go | |
parent | f081266e4af4bdce22756aa58489225dfbe6bb23 (diff) | |
download | go-306c540a28a31b38709eaee57b74ac109dec83a6.tar.gz go-306c540a28a31b38709eaee57b74ac109dec83a6.zip |
time: warn that RFC3339Nano does not guarantee a natural ordering
Fixes #19635
Change-Id: I85e725dbc85843afd0f4d82f5127fecacc1cb524
Reviewed-on: https://go-review.googlesource.com/47090
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/time/format.go')
-rw-r--r-- | src/time/format.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/time/format.go b/src/time/format.go index 37e759f890..852138977b 100644 --- a/src/time/format.go +++ b/src/time/format.go @@ -61,6 +61,8 @@ import "errors" // RFC822, RFC822Z, RFC1123, and RFC1123Z are useful for formatting; // when used with time.Parse they do not accept all the time formats // permitted by the RFCs. +// The RFC3339Nano format removes trailing zeros from the seconds field +// and thus may not sort correctly once formatted. const ( ANSIC = "Mon Jan _2 15:04:05 2006" UnixDate = "Mon Jan _2 15:04:05 MST 2006" |