Versions in this module Expand all Collapse all v1 v1.3.0 Sep 22, 2019 v1.2.0 Aug 20, 2019 Changes in this version + func Future(sec int, f func()) + func GetEndtime(format string) time.Time + func Time2Unix(t time.Time) int64 + func Time2UnixNano(t time.Time) int64 + func TimeDayDuratioin(day float64) time.Duration + func TimeHourDuratioin(hour float64) time.Duration + func TimeMicrosecondDuration(m float64) time.Duration + func TimeMillisecondDuration(m float64) time.Duration + func TimeMinuteDuration(minute float64) time.Duration + func TimeNanosecondDuration(n float64) time.Duration + func TimeSecondDuration(sec float64) time.Duration + func Unix2Time(unix int64) time.Time + func UnixNano2Time(nano int64) time.Time + func UnixString2Time(unix string) time.Time + func YMD(year int, month int, day int, hour int, minute int, sec int) int + func YMDPrint(sec int, nsec int) string + func YMDUTC(year int, month int, day int, hour int, minute int, sec int) int + type CountWatch struct + func (w *CountWatch) Count() int64 + func (w *CountWatch) Reset() + func (w *CountWatch) Start() + type Wheel struct + func NewWheel(span time.Duration, buckets int) *Wheel + func (w *Wheel) After(timeout time.Duration) <-chan struct{} + func (w *Wheel) Now() time.Time + func (w *Wheel) Stop()