Documentation ¶
Index ¶
- func AssertMilliseconds(ms int64) (timestampMilliseconds int64, err error)
- func AssertSeconds(timestamp int64) (timestampSeconds int64, err error)
- func GetPeriodsStartAndEndUTC(firstyyyymm string, lastyyyymm string) (int64, int64, error)
- func MillisecondsNow() int64
- func MillisecondsTime(ms int64) time.Time
- func MillisecondsUnix(t time.Time) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertMilliseconds ¶
AssertMilliseconds ensures that a given timestamp is in milliseconds. If not, a timestamp converted into milliseconds as well as an error will be returned.
func AssertSeconds ¶
AssertSeconds ensures that a given timestamp is in seconds. If not, a timestamp converted into seconds as well as an error will be returned.
func GetPeriodsStartAndEndUTC ¶
GetPeriodsStartAndEndUTC returns the start and end timestamps (in milliseconds) given two months for location UTC (timezone)
func MillisecondsNow ¶
func MillisecondsNow() int64
MillisecondsNow returns milliseconds for time now
func MillisecondsTime ¶
MillisecondsTime returns a Time struct for a given millisecond timestamp
func MillisecondsUnix ¶
MillisecondsUnix returns milliseconds for given time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.