Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeFormat = "2006-01-02 15:04:05" DateFormat = "2006-01-02" UnixTimeUnitOffset = uint64(time.Millisecond / time.Nanosecond) )
Variables ¶
This section is empty.
Functions ¶
func CurrentTimeMillis ¶
func CurrentTimeMillis() uint64
Returns the current Unix timestamp in milliseconds.
func CurrentTimeNano ¶
func CurrentTimeNano() uint64
Returns the current Unix timestamp in nanoseconds.
func FormatDate ¶
FormatDate converts to date string tsMillis accurates to millisecond,otherwise, an error will occur
func FormatTimeMillis ¶
FormatTimeMillis converts Millisecond to time string tsMillis accurates to millisecond,otherwise, an error will occur
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.