1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00
go/src/time
Russ Cox 6c85fb08c2 time: strip monotonic time in t.Round, t.Truncate
The original analysis of the Go corpus assumed that these
stripped monotonic time. During the design discussion we
decided to try not stripping monotonic time here, but existing
code works better if we do.

See the discussion on golang.org/issue/18991 for more details.

For #18991.

Change-Id: I04d355ffe56ca0317acdd2ca76cb3033c277f6d1
Reviewed-on: https://go-review.googlesource.com/37542
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-03-02 13:52:08 +00:00
..
example_test.go time: improve Truncate and Round documentation 2016-09-12 22:07:17 +00:00
export_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
export_test.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
export_windows_test.go
format_test.go time: parse WITA timezone correctly 2016-12-12 20:14:12 +00:00
format.go time: format negative monotonic times correctly in Time.String 2017-02-09 02:41:15 +00:00
genzabbrs.go time: genzabbrs.go skips Feb when checking months 2016-06-09 15:31:08 +00:00
internal_test.go
mono_test.go time: strip monotonic time in t.Round, t.Truncate 2017-03-02 13:52:08 +00:00
sleep_test.go
sleep.go time: update Timer.Stop doc to account for AfterFunc 2016-11-11 19:25:24 +00:00
sys_plan9.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
sys_unix.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
sys_windows.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
tick_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
tick.go all: single space after period. 2016-03-02 00:13:47 +00:00
time_test.go time: add Duration.Truncate and Duration.Round 2017-02-14 00:40:31 +00:00
time.go time: strip monotonic time in t.Round, t.Truncate 2017-03-02 13:52:08 +00:00
zoneinfo_abbrs_windows.go time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go 2016-08-28 02:51:07 +00:00
zoneinfo_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_android.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_ios.go
zoneinfo_plan9.go time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
zoneinfo_read.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
zoneinfo_test.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00
zoneinfo_unix.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_windows_test.go
zoneinfo_windows.go time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
zoneinfo.go time: bound file reads and validate LoadLocation argument 2017-02-08 16:20:25 +00:00