Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoundToNearest ¶
RoundToNearest round an actual time to the nearest interval.
func SetNowFunc ¶
SetNowFunc exists for testing purpose e.g: set the vegatime.Now function to return a specific time
vegatime.SetNowFunc(func() time.T { vegatime.Unix(123423, 0) })
reset the vegatime.Now function
vegatime.SetNowFunc(nil)
this will reset the vegatime.Now function to use time.Now() again.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.