Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Day = 24 * Hour
Day 1day=24h=86400s
View Source
var FmtCompactDate = "20060102"
FmtCompactDate 格式化紧凑型日期
View Source
var FmtCompactFullDate = "20060102150405"
mtCompactDate 格式化紧凑型日期(全量)
View Source
var FmtDate = "2006-01-02"
FmtDate 格式化日期
View Source
var FmtFullDate = "2006-01-02 15:04:05"
FmtFullDate 格式化时间(全量)相当于YYYY-MM:DD HH:mm:ss
View Source
var Hour = 60 * Minute
Hour 1h=60min=3600s
View Source
var Minute = 60
Minute 1min=60s
View Source
var Month = 30 * Day
Month 1Mon=30Day
View Source
var Week = 7 * Day
Week
View Source
var Year = 365 * Day
Year 一年的所有秒数
Functions ¶
func GetDayLastMillisecond ¶
func GetDayLastMillisecond() int64
GetDayLastMillisecond 获取一天内剩余的时间,毫秒数
Types ¶
Click to show internal directories.
Click to hide internal directories.