]> Cypherpunks repositories - gostls13.git/commit
time: allow any one- or two-digit day of the month when parsing.
authorRob Pike <r@golang.org>
Mon, 31 Aug 2015 22:45:47 +0000 (15:45 -0700)
committerRob Pike <r@golang.org>
Thu, 10 Sep 2015 20:27:53 +0000 (20:27 +0000)
commit8b96be15f6632b33c7341840002bc5b0744b2977
tree56a03e15a60282dffc7139b8b63dd7bcc1e0e0f3
parente216735dfad648b8ef26ffd389305a141c1dec75
time: allow any one- or two-digit day of the month when parsing.

In Parse, one can now say Feb 31 or even Feb 99. This is easy
to explain, consistent with time.Date, and even maybe useful.

Fixes #12333.
Fixes #7268. (By disagreeing with it.)

Change-Id: I7b95c842528bed66933681c8b9cc00640fccfcb4
Reviewed-on: https://go-review.googlesource.com/14123
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/format.go
src/time/format_test.go