]> Cypherpunks repositories - gostls13.git/commit
time: strip monotonic time in t.Round, t.Truncate
authorRuss Cox <rsc@golang.org>
Thu, 2 Mar 2017 02:09:52 +0000 (21:09 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 2 Mar 2017 13:52:08 +0000 (13:52 +0000)
commit6c85fb08c27c0346125567573e0f0a2b8124bc3b
tree98c0b17cbe759777001f7374f70950237fa078be
parentf072283bcecb66f8c22046cad4d8ddcc458d32e7
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>
src/time/mono_test.go
src/time/time.go