Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const ANSIC + const Hour + const Kitchen + const Layout + 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 int64 + func ParseDuration(s string) (Duration, error) + func Since(t Time) Duration + func Until(t Time) Duration + func (d Duration) Hours() float64 + func (d Duration) Microseconds() int64 + func (d Duration) Milliseconds() int64 + func (d Duration) Minutes() float64 + func (d Duration) Nanoseconds() int64 + func (d Duration) Round(m Duration) Duration + func (d Duration) Seconds() float64 + func (d Duration) String() string + func (d Duration) Truncate(m Duration) Duration + type Location struct + var Local *Location = &localLoc + var UTC *Location = &utcLoc + func FixedZone(name string, offset int) *Location + func LoadLocation(name string) (*Location, error) + func LoadLocationFromTZData(name string, data []byte) (*Location, error) + func (l *Location) String() string + type Month int + const April + const August + const December + const February + const January + const July + const June + const March + const May + const November + const October + const September + func (m Month) String() string + type ParseError struct + Layout string + LayoutElem string + Message string + Value string + ValueElem string + func (e *ParseError) Error() string + type Ticker struct + C <-chan Time + func NewTicker(d Duration) *Ticker + func (t *Ticker) Reset(d Duration) + func (t *Ticker) Stop() + type Time struct + 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 int64, nsec int64) Time + func UnixMicro(usec int64) Time + func UnixMilli(msec int64) Time + func (t *Time) GobDecode(data []byte) error + func (t *Time) UnmarshalBinary(data []byte) error + func (t *Time) UnmarshalJSON(data []byte) error + func (t *Time) UnmarshalText(data []byte) error + func (t Time) Add(d Duration) Time + func (t Time) AddDate(years int, months int, days int) Time + func (t Time) After(u Time) bool + func (t Time) AppendFormat(b []byte, layout string) []byte + func (t Time) Before(u Time) bool + func (t Time) Clock() (hour, min, sec int) + func (t Time) Date() (year int, month Month, day int) + func (t Time) Day() int + func (t Time) Equal(u Time) bool + func (t Time) Format(layout string) string + func (t Time) GoString() string + func (t Time) GobEncode() ([]byte, error) + func (t Time) Hour() int + func (t Time) ISOWeek() (year, week int) + func (t Time) In(loc *Location) Time + func (t Time) IsDST() bool + func (t Time) IsZero() bool + func (t Time) Local() Time + func (t Time) Location() *Location + func (t Time) MarshalBinary() ([]byte, error) + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) MarshalText() ([]byte, error) + func (t Time) Minute() int + func (t Time) Month() Month + func (t Time) Nanosecond() int + func (t Time) Round(d Duration) Time + func (t Time) Second() int + func (t Time) String() string + func (t Time) Sub(u Time) Duration + func (t Time) Truncate(d Duration) Time + func (t Time) UTC() Time + func (t Time) Unix() int64 + func (t Time) UnixMicro() int64 + func (t Time) UnixMilli() int64 + func (t Time) UnixNano() int64 + func (t Time) Weekday() Weekday + func (t Time) Year() int + func (t Time) YearDay() int + func (t Time) Zone() (name string, offset int) + type Timer struct + C <-chan Time + func AfterFunc(d Duration, f func()) *Timer + func NewTimer(d Duration) *Timer + func (t *Timer) Reset(d Duration) bool + func (t *Timer) Stop() bool + type Weekday int + const Friday + const Monday + const Saturday + const Sunday + const Thursday + const Tuesday + const Wednesday + func (d Weekday) String() string