Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddJitterToDuration ¶
AddJitterToDuration adds up to 10% random jitter to d and returns the resulting duration.
The maximum jitter is limited by 10 seconds.
func EndOfDay ¶
EndOfDay returns the end of the day for the given timestamp. Timestamp is in milliseconds.
func GetLocalTimezoneOffsetNsecs ¶ added in v1.97.9
func GetLocalTimezoneOffsetNsecs() int64
GetLocalTimezoneOffsetNsecs returns local timezone offset in nanoseconds.
func StartOfDay ¶
StartOfDay returns the start of the day for the given timestamp. Timestamp is in milliseconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.