go/src/time
Meng Zhuo 5b9206f64e time: allow minimum int64 in ParseDuration
ParseDuration should handle minimum int64 (-1<<63) nanosecond
since type Duration is alias of int64

name           old time/op  new time/op  delta
ParseDuration  91.4ns ± 0%  86.4ns ± 1%  -5.49%  (p=0.000 n=9+8)

Fixes: #48629
Change-Id: I81b7035b25cefb4c1e5b7801c20f2d335e29358a
Reviewed-on: https://go-review.googlesource.com/c/go/+/352269
Trust: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-10-08 14:08:12 +00:00
..
testdata time: move slim test tzdata to testdata directory 2021-04-14 19:38:36 +00:00
tzdata time/tzdata: update links in comment 2021-08-15 00:19:34 +00:00
embed.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
example_test.go runtime, time: gofmt 2020-05-26 22:06:26 +00:00
export_android_test.go
export_test.go time: properly quote strings containing quotes and backslashes 2021-04-06 19:18:47 +00:00
export_windows_test.go
format.go time: allow minimum int64 in ParseDuration 2021-10-08 14:08:12 +00:00
format_test.go time: truncate fractional seconds longer than 9 digits 2021-10-06 19:45:35 +00:00
genzabbrs.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
internal_test.go time: reference -tags=timetzdata in testing panic 2021-09-10 17:11:39 +00:00
mono_test.go
sleep.go time: update current time comment 2021-08-16 17:24:37 +00:00
sleep_test.go runtime: in adjustTimers back up as far as necessary 2021-09-15 00:56:40 +00:00
sys_plan9.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
sys_unix.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
sys_windows.go
tick.go time: update current time comment 2021-08-16 17:24:37 +00:00
tick_test.go time: fallback to slower TestTicker test after one failure 2021-10-06 23:01:01 +00:00
time.go time: support fractional timezone minutes in MarshalBinary 2021-09-17 23:18:47 +00:00
time_test.go time: allow minimum int64 in ParseDuration 2021-10-08 14:08:12 +00:00
tzdata_test.go time/tzdata: new package 2020-04-14 19:34:31 +00:00
zoneinfo.go time: add doc comment about tzdata package 2021-09-30 15:03:39 +00:00
zoneinfo_abbrs_windows.go
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_ios.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
zoneinfo_js.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
zoneinfo_plan9.go
zoneinfo_read.go time: use offset and isDST when caching zone from extend string 2021-04-05 18:52:42 +00:00
zoneinfo_test.go time: add missing "os" import to zoneinfo_test.go 2021-04-15 00:40:43 +00:00
zoneinfo_unix.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
zoneinfo_unix_test.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
zoneinfo_windows.go syscall: remove dependency on io 2020-10-13 00:55:35 +00:00
zoneinfo_windows_test.go