Documentation
¶
Index ¶
Constants ¶
View Source
const ( // OneSecond is the number of millisecond for a second OneSecond int64 = 1000 // OneMinute is the number of millisecond for a minute OneMinute = 60 * OneSecond // OneHour is the number of millisecond for an hour OneHour = 60 * OneMinute // OneDay is the number of millisecond for a day OneDay = 24 * OneHour // OneWeek is the number of millisecond for a week OneWeek = 7 * OneDay // OneMonth is the number of millisecond for a month OneMonth = 30 * OneDay // OneYear is the number of millisecond for a year OneYear = 365 * OneDay DataTimeFormat1 = "20060102 15:04:05" DataTimeFormat2 = "2006-01-02 15:04:05" DataTimeFormat3 = "2006/01/02 15:04:05" DataTimeFormat4 = "20060102150405" )
Variables ¶
This section is empty.
Functions ¶
func FormatTimestamp ¶
FormatTimestamp returns timestamp format based on layout
func Now ¶
func Now() int64
Now returns t as a Unix time, the number of millisecond elapsed since January 1, 1970 UTC. The result does not depend on the location associated with t.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.