Documentation ¶
Index ¶
- func DateDay() (day int)
- func DateDayFormat() string
- func DateDayMilliseconds() (r int64)
- func DateDayZero() (r int64)
- func DayMi() (rr int64)
- func GetDuration(hoursAgo int) string
- func GetTodayZero() string
- func GetWeek() (week int64)
- func GetYesterdayZero() string
- func IsLeapYear(year int) bool
- func IsMonthLastDay(year, month, day int) bool
- func IsToday(ts int64) bool
- func MonthlyTotal(year int, month int) (days int)
- func NextDayZeroTs() int64
- func StringToInt64(s string) (t int64)
- func TimeFormat() string
- func TimeFormat1() string
- func TimeFormat2() string
- func TimeFormat3() string
- func TimeFormat4() string
- func TimeFormat5() string
- func TodayLastSec() int64
- func TodayZeroTs() int64
- func UnixTimeInt64(q int64) (p int64)
- func UnixTimeString(q int64) (p string)
- func WeekOneAndWeekSevenTime() (one int64, seven int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateDayFormat ¶
func DateDayFormat() string
func DateDayMilliseconds ¶
func DateDayMilliseconds() (r int64)
DateDayMilliseconds Time stamp for the morning of the day: in milliseconds DateDayMilliseconds 获取当日凌晨时间戳(毫秒)
func DateDayZero ¶
func DateDayZero() (r int64)
DateDayZero 获取当日零时时间戳(秒) Time stamp of the morning of the day: unit seconds
func GetYesterdayZero ¶
func GetYesterdayZero() string
GetYesterdayZero ... @Description: 获取昨天凌晨 @return string
func IsLeapYear ¶
IsLeapYear ... @Description: 是否润年 @param year @return bool
func IsMonthLastDay ¶
IsMonthLastDay ... @Description: 是否每个月最后一天 @param year @param month @param day @return bool
func TimeFormat ¶
func TimeFormat() string
TimeFormat ... @Description: 格式返回2021-01-06 @return string
func TimeFormat1 ¶
func TimeFormat1() string
TimeFormat1 ... @Description: 2021-01-06 11:22:31 @return string
func TimeFormat2 ¶
func TimeFormat2() string
TimeFormat2 ... @Description: 格式返回2021/01/06 @return string
func TimeFormat3 ¶
func TimeFormat3() string
TimeFormat3 ... @Description: 2021/01/06 11:22:31 @return string
func TimeFormat5 ¶
func TimeFormat5() string
TimeFormat5 ... @Description: 20210106 11:22:31 @return string
func UnixTimeInt64 ¶
UnixTimeInt64 返回值int64类型 时间戳(秒): time.Now().Unix()) 时间戳(纳秒): time.Now().UnixNano()) 时间戳(毫秒): time.Now().UnixNano()/1e6) 时间戳(纳秒转换为秒) time.Now().UnixNano()/1e9)
func UnixTimeString ¶
UnixTimeString 返回值string类型 时间戳(秒): time.Now().Unix()) 时间戳(纳秒): time.Now().UnixNano()) 时间戳(毫秒): time.Now().UnixNano()/1e6) 时间戳(纳秒转换为秒) time.Now().UnixNano()/1e9)
func WeekOneAndWeekSevenTime ¶
WeekOneAndWeekSevenTime 当前周一凌晨和周日最后时间戳
Types ¶
This section is empty.