-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.Proposal
Milestone
Description
The upper bound of a nanoseconds-since-1970 timestamp is not very far away, on the timescale of human civilization:
time.Unix(0, math.MaxInt64)
2262-04-11 23:47:16.854775807 +0000 UTC
Suggestions for improvement:
- Document the limits at https://golang.org/pkg/time/, and deprecate the
UnixNanofunction. - Create a
UnixMicrofunction, which works until the year 294247.
I notice a lot of code that tries to implement UnixMicro as UnixNano()/1000, so it would be good to have a centralized, correct implementation.
sergeylanzman
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.Proposal