Documentation
¶
Overview ¶
Index ¶
- func After(d time.Duration) <-chan time.Time
- func Duration(str string) time.Duration
- func Elapse(f func()) int64
- func GetTimestampInMilli() int64
- func IsLeapYear(year int) bool
- func NewRashTimer(tick time.Duration) *rashTimer
- func Sleep(d time.Duration)
- func Tick(d time.Duration) <-chan time.Time
- type Ticker
- type 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
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRashTimer ¶
NewRashTimer is the time for a jiffies
Types ¶
type Time ¶
Time time
func (*Time) BeginOfDay ¶
BeginOfDay returns zero point of time's day
func (*Time) BeginOfHour ¶
BeginOfHour returns zero point of time's day
func (*Time) BeginOfMinute ¶
BeginOfMinute returns zero point of time's day
func (*Time) BeginOfWeek ¶
BeginOfWeek the day of begin of week, NOTE: week begin from Sunday
func (*Time) BeginOfYear ¶
BeginOfYear BeginOfYear beginning of year
func (*Time) EndOfMinute ¶
EndOfMinute returns last point of time's day
Click to show internal directories.
Click to hide internal directories.