]> Cypherpunks repositories - gostls13.git/commitdiff
time: delete incorrect docs about day-of-month checks.
authorSameer Ajmani <sameer@golang.org>
Tue, 7 Feb 2017 17:27:29 +0000 (12:27 -0500)
committerSameer Ajmani <sameer@golang.org>
Tue, 7 Feb 2017 19:24:02 +0000 (19:24 +0000)
Documentation was introduced by CL https://golang.org/cl/14123
but that behavior was changed later by CL https://golang.org/cl/17710.
This CL deletes the stale paragraph.

Fixes #18980

Change-Id: Ib434f1eac6fc814fde1be112a8f52afe6e3e0fcc
Reviewed-on: https://go-review.googlesource.com/36532
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/format.go

index 027fe8bdffe742da3a20d9f72a55ee348bf2b010..7fe5b51bca48e0307148ff321d5df83632cc45b5 100644 (file)
@@ -758,11 +758,6 @@ func skip(value, prefix string) (string, error) {
 // location and zone in the returned time. Otherwise it records the time as
 // being in a fabricated location with time fixed at the given zone offset.
 //
-// No checking is done that the day of the month is within the month's
-// valid dates; any one- or two-digit value is accepted. For example
-// February 31 and even February 99 are valid dates, specifying dates
-// in March and May. This behavior is consistent with time.Date.
-//
 // When parsing a time with a zone abbreviation like MST, if the zone abbreviation
 // has a defined offset in the current location, then that offset is used.
 // The zone abbreviation "UTC" is recognized as UTC regardless of location.