Documentation ¶
Index ¶
- Constants
- func InitAkTime(redconn redis.Conn)
- func IsCross24Hour(t1 int64, t2 int64) (yes bool)
- func IsCrossDay4Zero(t1 int64, t2 int64) (yes bool)
- func IsCrossDay4ZeroNow(t1 int64) (yes bool)
- func IsCrossHours(t1 int64, t2 int64, hours int64) (yes bool)
- func IsCrossMins(t1 int64, t2 int64, mins int64) (yes bool)
- func IsCrossMonth(t1 int64, t2 int64) (yes bool)
- func IsCrossMonth4Now(t1 int64) (yes bool)
- func IsCrossSecs(t1 int64, t2 int64, secs int64) (yes bool)
- func IsCrossYear(t1 int64, t2 int64) (yes bool)
- func IsCrossYear4Now(t1 int64) (yes bool)
- func Now() time.Time
Constants ¶
const ( CstOneWeekDays = 7 //一周7天 CstOneWeekHours = 7 * 24 //一周多少小时 CstOneWeekMins = 7 * 24 * 60 //一周多少分钟 CstOneWeekSecs = 7 * 24 * 60 * 60 //一周多少秒 CstOneDayHours = 24 //一天多少小时 CstOneDayMins = 24 * 60 //一天多少分钟 CstOneDaySecs = 24 * 60 * 60 //一天多少秒 CstOneHourMins = 60 //一个小时多少分钟 CstOneHourSecs = 60 * 60 //一个小时多少秒 CstOneMinSecs = 60 //一分钟多少秒 )
Variables ¶
This section is empty.
Functions ¶
func InitAkTime ¶
func IsCross24Hour ¶
----------------------- HOUR ---------------------------- check cross 24 hours for diff cross day.
func IsCrossDay4Zero ¶
----------------------- DAY ---------------------------- check cross day for zero(0/24) clock.
func IsCrossDay4ZeroNow ¶
check cross "now" day for zero(0/24) clock
func IsCrossHours ¶
check cross hours.
func IsCrossMins ¶
----------------------- Min ---------------------------- check cross mins.
func IsCrossMonth ¶
check cross month for compare time
func IsCrossMonth4Now ¶
----------------------- MONTH ---------------------------- check cross month for now time.
func IsCrossSecs ¶
----------------------- Second ---------------------------- check cross seconds.
func IsCrossYear ¶
check cross year for compare time
func IsCrossYear4Now ¶
----------------------- YEAR ---------------------------- check cross year for now time.
Types ¶
This section is empty.