Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.