Documentation ¶
Index ¶
- Constants
- func CalcNextSec(sec int) int
- func CalcNextSecWithTime(t time.Time, sec int) int
- func GetMondayZero(t time.Time) time.Time
- func GetMonthDays(t time.Time) int
- func GetNextDayInterval(t time.Time) time.Duration
- func GetSecond(d time.Duration) int
- func GetToday(t time.Time) time.Time
- func IntervalFormat(time1, time2 time.Time) string
- func IntervalFormatSet(intervalType int, str string)
- func IsSameDay(t1, t2 time.Time) bool
- func IsSameHour(t1, t2 time.Time) bool
- func WeekDay(t time.Time) int
Constants ¶
View Source
const ( IntervalYear = iota IntervalDay IntervalHour IntervalMinute IntervalSecond IntervalNow )
Variables ¶
This section is empty.
Functions ¶
func CalcNextSecWithTime ¶
CalcNextSecWithTime 计算下一个N秒在多少秒之后
func GetNextDayInterval ¶
GetNextDayInterval 获取一个时间到下一天间隔多少秒
func IntervalFormatSet ¶
IntervalFormatSet 针对 IntervalFormat 函数设置格式化内容
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.