# Functions
Date 跟 PHP 中 date 类似的使用方式 layout 格式,如"Y-m-d H:i:s".
Days time.Duration转化为天数.
EndOfDay 获取日期中当天的结束时间.
EndOfMonth 获取日期中当月的结束时间.
EndOfWeek 获取日期中当周的结束时间; weekStartDay 周几作为周的第一天,本库默认周一.
EndOfYear 获取日期中当年的结束时间.
IsLeapYear 是否闰年.
Microsecond time.Time 转为 微秒.
Millisecond time.Time 转为 毫秒.
MonthDays 所在年份月份的天数.
MonthDays2 t 所在时间月份的天数.
MSleep pauses the current goroutine for at least the millisecond d.
Now 跟 PHP 中 date 类似的使用方式 layout 格式,如"Y-m-d H:i:s".
NowMS time.Now() 转为 毫秒.
NowUS time.Now() 转为 微秒.
Parse parse value use PHP time format.
ParseLocation parse location.
ServiceElapseTime 服务启动了多少时间.
ServiceStartupTime 服务启动时间.
ServiceUptime 服务启动了多少second.
Sleep pauses the current goroutine for at least the second d.
StartOfDay 获取日期中当天的开始时间.
StartOfMonth 获取日期中当月的开始时间.
StartOfWeek 获取日期中当周的开始时间; weekStartDay 周几作为周的第一天,本库默认周一.
StartOfYear 获取日期中当年的开始时间.
Time 毫秒转time.Time.
USleep pauses the current goroutine for at least the microsecond d.
Valid 检查是否正常的日期.
YearDays 所在年份总天数.