]> Cypherpunks repositories - gostls13.git/commit
time: document in UnixNano when the value is valid
authorJoe Tsai <joetsai@digital-static.net>
Sun, 4 Sep 2016 01:16:52 +0000 (18:16 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 14 Sep 2016 21:07:35 +0000 (21:07 +0000)
commitb78108d5dc198a1bb8ed294b8b974f0c0d51b55c
treea77348da161152860b2c3bf7d664d0632cf7d6e7
parent4b8a1611b5d37fd41d2d11ef1bb3455c77b34e07
time: document in UnixNano when the value is valid

It is unlikely that the value of UnixNano overflow in most
use cases. However, the max date of 2262 is also within the range
where it may be of concern to some users. Rather than have each
person recompute when this overflows to validate if its okay for
their use case, we just document it as within the years 1678 and
2262, for user's convenience.

Fixes #16977

Change-Id: I4988738c147f4a6d30f8b8735c3941b75113bb16
Reviewed-on: https://go-review.googlesource.com/28478
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/time/time.go