go/src/time
David Golden a9cc1051c1 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>
2020-06-02 22:20:47 +00:00
..
tzdata lib/time, time/tzdata: update tz data to 2020a 2020-04-30 08:07:39 +00:00
embed.go time/tzdata: new package 2020-04-14 19:34:31 +00:00
example_test.go runtime, time: gofmt 2020-05-26 22:06:26 +00:00
export_android_test.go
export_test.go time: use extended time format past end of zone transitions 2020-04-22 04:08:24 +00:00
export_windows_test.go
format.go time: note that formats may parse invalid strings 2020-06-02 22:20:47 +00:00
format_test.go time: quote original value in errors returned by ParseDuration 2020-04-14 00:01:14 +00:00
genzabbrs.go
internal_test.go time: stop referring to timerproc in comment 2020-03-13 00:19:08 +00:00
mono_test.go
sleep.go time, runtime: only call resetTimer from (*Timer).Reset 2020-04-06 03:35:33 +00:00
sleep_test.go all: fix invalid invocations of Fatalf in goroutines 2020-01-03 01:36:26 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick.go time: add Ticker.Reset 2020-02-24 01:50:28 +00:00
tick_test.go time: add Ticker.Reset 2020-02-24 01:50:28 +00:00
time.go time: use extended time format past end of zone transitions 2020-04-22 04:08:24 +00:00
time_test.go time: use extended time format past end of zone transitions 2020-04-22 04:08:24 +00:00
tzdata_test.go time/tzdata: new package 2020-04-14 19:34:31 +00:00
zoneinfo.go time: use extended time format past end of zone transitions 2020-04-22 04:08:24 +00:00
zoneinfo_abbrs_windows.go
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_ios.go all: remove darwin/arm build-tags and files 2020-04-08 18:35:43 +00:00
zoneinfo_js.go
zoneinfo_plan9.go
zoneinfo_read.go time: use extended time format past end of zone transitions 2020-04-22 04:08:24 +00:00
zoneinfo_test.go time: use extended time format past end of zone transitions 2020-04-22 04:08:24 +00:00
zoneinfo_unix.go all: remove darwin/386 build-tags and files 2020-04-08 18:37:36 +00:00
zoneinfo_windows.go
zoneinfo_windows_test.go