Versions in this module Expand all Collapse all v1 v1.1.4 Jan 19, 2026 Changes in this version + const Day + const SimpleDate1 + const SimpleDate2 + const UsDate1 + func ParseDurationWithDays(value string) (time.Duration, error) + func ParseTimeOrRelativeDuration(value string, now time.Time) (time.Time, error) v1.1.3 Dec 26, 2025 Changes in this version + type Clock interface + AfterFunc func(d time.Duration, f func()) Timer + NewTimer func(d time.Duration) Timer + Now func() time.Time + WithTimeout func(parent context.Context, d time.Duration) (context.Context, context.CancelFunc) + type FakeClock struct + func NewFakeClock(now time.Time) *FakeClock + func (f *FakeClock) Advance(d time.Duration) + func (f *FakeClock) AfterFunc(d time.Duration, fn func()) Timer + func (f *FakeClock) NewTimer(d time.Duration) Timer + func (f *FakeClock) Now() time.Time + func (f *FakeClock) WithTimeout(parent context.Context, d time.Duration) (context.Context, context.CancelFunc) + type FakeDeadlineContext struct + func (ctx *FakeDeadlineContext) Deadline() (deadline time.Time, ok bool) + func (ctx *FakeDeadlineContext) Done() <-chan struct{} + func (ctx *FakeDeadlineContext) Err() error + type FakeTimer struct + func (f *FakeTimer) C() <-chan time.Time + func (f *FakeTimer) Less(rhs *FakeTimer) bool + func (f *FakeTimer) Reset(d time.Duration) bool + func (f *FakeTimer) Stop() bool + type RealClock struct + func NewRealClock() *RealClock + func (r RealClock) AfterFunc(d time.Duration, f func()) Timer + func (r RealClock) NewTimer(d time.Duration) Timer + func (r RealClock) Now() time.Time + func (r RealClock) WithTimeout(parent context.Context, d time.Duration) (context.Context, context.CancelFunc) + type RealTimer struct + func (r RealTimer) C() <-chan time.Time + type Timer interface + C func() <-chan time.Time + Reset func(d time.Duration) bool + Stop func() bool v1.1.2 Dec 26, 2025