Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2018 Changes in this version + const ANSIC + const Hour + const Kitchen + const Microsecond + const Millisecond + const Minute + const Nanosecond + const RFC1123 + const RFC1123Z + const RFC3339 + const RFC3339Nano + const RFC822 + const RFC822Z + const RFC850 + const RubyDate + const Second + const Stamp + const StampMicro + const StampMilli + const StampNano + const UnixDate + func After(d Duration) <-chan Time + func Sleep(d Duration) + func Tick(d Duration) <-chan Time + type Duration = time.Duration + func ParseDuration(s string) (Duration, error) + func Since(t Time) Duration + func Until(t Time) Duration + type Location = time.Location + var Local *Location = time.Local + var UTC *Location = time.UTC + func FixedZone(name string, offset int) *Location + func LoadLocation(name string) (*Location, error) + func LoadLocationFromTZData(name string, data []byte) (*Location, error) + type Month = time.Month + const April + const August + const December + const February + const January + const July + const June + const March + const May + const November + const October + const September + type ParseError = time.ParseError + type Proxy interface + After func(Duration) <-chan Time + AfterFunc func(Duration, func()) *Timer + NewTicker func(Duration) *Ticker + NewTimer func(Duration) *Timer + Now func() Time + Since func(Time) Duration + Sleep func(Duration) + Tick func(Duration) <-chan Time + Until func(Time) Duration + var TimeProxy Proxy = RealTime{} + type RealTime struct + func (RealTime) After(d Duration) <-chan Time + func (RealTime) AfterFunc(d Duration, f func()) *Timer + func (RealTime) NewTicker(d Duration) *Ticker + func (RealTime) NewTimer(d Duration) *Timer + func (RealTime) Now() Time + func (RealTime) Since(t Time) Duration + func (RealTime) Sleep(d Duration) + func (RealTime) Tick(d Duration) <-chan Time + func (RealTime) Until(t Time) Duration + type Ticker struct + C <-chan Time + StopFunc func() + func NewTicker(d Duration) *Ticker + func (t *Ticker) Stop() + type Time = time.Time + func Date(year int, month Month, day, hour, min, sec, nsec int, loc *Location) Time + func Now() Time + func Parse(layout, value string) (Time, error) + func ParseInLocation(layout, value string, loc *Location) (Time, error) + func Unix(sec, nsec int64) Time + type Timer struct + C <-chan Time + ResetFunc func(Duration) bool + StopFunc func() bool + func NewTimer(d Duration) *Timer + func (t *Timer) Reset(d Duration) bool + func (t *Timer) Stop() bool + type Weekday = time.Weekday + const Friday + const Monday + const Saturday + const Sunday + const Thursday + const Tuesday + const Wednesday