Documentation
¶
Index ¶
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05"
TimeFormat 2006-01-02 15:04:05
View Source
const TimeFormatTZ = "2006-01-02 15:04:05 -0700 MST"
TimeFormatTZ 2006-01-02 15:04:05
Variables ¶
View Source
var ChinaTimeZone = func() *time.Location { tz, err := time.LoadLocation("Asia/Shanghai") if err != nil { tz = time.UTC } return tz }()
ChinaTimeZone UTC +8 timezone
Functions ¶
func FromString ¶
FromString from time string like 2006-01-02 15:04:05
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.