• Russ Cox's avatar
    time: add Round and Truncate · 00cd6a3b
    Russ Cox authored
    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
    00cd6a3b
Name
Last commit
Last update
..
example_test.go Loading commit data...
format.go Loading commit data...
internal_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...