]> Cypherpunks repositories - gostls13.git/commit
time: note that formats may parse invalid strings
authorDavid Golden <david@autopragmatic.com>
Thu, 23 Apr 2020 01:16:49 +0000 (21:16 -0400)
committerIan Lance Taylor <iant@golang.org>
Tue, 2 Jun 2020 22:20:47 +0000 (22:20 +0000)
commita9cc1051c11f821cb03d63fb9e05930f9e2f9fa5
treee651fc1c262b6df22e6eee27465f48e9355f1d2d
parentee776b41267ee910196b616b7104f0e5ed63d2b2
time: note that formats may parse invalid strings

The existing documentation for time format constants doesn't mention
that they may parse technically-invalid strings, such as single-digit
hours when a two-digit hour is required by a specification.  This commit
adds a short warning note to that effect.

Fixes #37616

Change-Id: I6e5e12bd42dc368f8ca542b4c0527a2b7d30acaf
Reviewed-on: https://go-review.googlesource.com/c/go/+/229460
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/format.go