1
0
mirror of https://github.com/golang/go synced 2024-10-04 09:21:21 -06:00
go/src/pkg/time
Russ Cox 00cd6a3be3 time: add Round and Truncate
New in Go 1 will be nanosecond precision in the result of time.Now on Linux.
This will break code that stores time in external formats at microsecond
precision, reads it back, and expects to get exactly the same time.

Code like that can be fixed by using time.Now().Round(time.Microsecond)
instead of time.Now() in those contexts.

R=golang-dev, bradfitz, iant, remyoudompheng
CC=golang-dev
https://golang.org/cl/6903050
2012-12-09 03:59:33 -05:00
..
example_test.go time: add Round and Truncate 2012-12-09 03:59:33 -05:00
format.go time: accept numbers larger than 2^32 in ParseDuration. 2012-10-15 07:50:13 +11:00
internal_test.go time: fix daysIn for December 2011-12-07 14:47:25 -05:00
sleep_test.go time: fix deadlock in Sleep(0) 2012-05-29 22:30:56 +04:00
sleep.go time: clarify why timer.Stop and ticker.Stop don't close the channel 2012-11-08 23:25:48 +08:00
sys_plan9.go os,time: fix Plan 9 build 2012-02-20 12:31:24 +11:00
sys_unix.go time: switch to using (uncompressed) zoneinfo zip file 2012-02-19 03:16:20 -05:00
sys_windows.go time: switch to using (uncompressed) zoneinfo zip file 2012-02-19 03:16:20 -05:00
tick_test.go time: during short test, do not bother tickers take longer than expected 2012-03-07 01:10:55 +08:00
tick.go time: clarify why timer.Stop and ticker.Stop don't close the channel 2012-11-08 23:25:48 +08:00
time_test.go time: add Round and Truncate 2012-12-09 03:59:33 -05:00
time.go time: add Round and Truncate 2012-12-09 03:59:33 -05:00
zoneinfo_plan9.go os,time: fix Plan 9 build 2012-02-20 12:31:24 +11:00
zoneinfo_read.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zoneinfo_unix.go time: switch to using (uncompressed) zoneinfo zip file 2012-02-19 03:16:20 -05:00
zoneinfo_windows.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zoneinfo.go time: make Format 2.7x faster 2012-06-03 11:08:17 -04:00