• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...