Commit 306c540a authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

time: warn that RFC3339Nano does not guarantee a natural ordering

Fixes #19635

Change-Id: I85e725dbc85843afd0f4d82f5127fecacc1cb524
Reviewed-on: https://go-review.googlesource.com/47090Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent f081266e
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment