Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2021 Changes in this version + const DateFormat + const UnixTimeUnitOffset + func After(d time.Duration) <-chan time.Time + func CurrentTimeMillis() uint64 + func CurrentTimeMillsWithTicker() uint64 + func CurrentTimeNano() uint64 + func Duration(str string) time.Duration + func Elapse(f func()) int64 + func FormatDate(tsMillis uint64) string + func FormatTimeMillis(tsMillis uint64) string + func GetTimestampInMilli() int64 + func IsLeapYear(year int) bool + func NewRashTimer(tick time.Duration) *rashTimer + func Sleep(d time.Duration) + func StartTimeTicker() + func Tick(d time.Duration) <-chan time.Time + type Ticker struct + C <-chan time.Time + func NewTicker(d time.Duration) *Ticker + func TickFunc(d time.Duration, f func()) *Ticker + func (t *Ticker) Reset(d time.Duration) + func (t *Ticker) Stop() + type Time struct + func Now() *Time + func Today() *Time + func Unix(sec, nsec int64) *Time + func (t *Time) BeginOfDay() *Time + func (t *Time) BeginOfHour() *Time + func (t *Time) BeginOfMinute() *Time + func (t *Time) BeginOfMonth() *Time + func (t *Time) BeginOfWeek() *Time + func (t *Time) BeginOfYear() *Time + func (t *Time) EndOfDay() *Time + func (t *Time) EndOfHour() *Time + func (t *Time) EndOfMinute() *Time + func (t *Time) EndOfMonth() *Time + func (t *Time) EndOfWeek() *Time + func (t *Time) EndOfYear() *Time + type TimeFormat string + var TS TimeFormat = "2006-01-02 15:04:05" + func (ts TimeFormat) Format(t time.Time) string + type Timer struct + C <-chan time.Time + func AfterFunc(d time.Duration, f func()) *Timer + func NewTimer(d time.Duration) *Timer + func (t *Timer) Reset(d time.Duration) + func (t *Timer) Stop()