Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NowUTCPlusOffset ¶
NowUTCPlusOffset return current time object in UTC with offset in hours
func UnixDate ¶
func UnixDate() uint64
UnixDate returns date from the current unix timestamp.
The date is calculated by dividing unix timestamp by (24*3600)
func UnixHour ¶
func UnixHour() uint64
UnixHour returns hour from the current unix timestamp.
The hour is calculated by dividing unix timestamp by 3600
func UnixTimestamp ¶
func UnixTimestamp() uint64
UnixTimestamp returns the current unix timestamp in seconds.
It is faster than time.Now().Unix()
func UnixTimestampNano ¶
func UnixTimestampNano() uint64
UnixTimestampNano returns the current unix timestamp in nanoseconds.
It is faster than time.Now().UnixNano()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.