package
0.2.0
Repository: https://github.com/now/x.git
Documentation: pkg.go.dev

# Functions

Default is ctxʹ ≈ ctx such that In(ctxʹ) is time.Now().
In is c.Now(), where c is the Clock previously added to ctx.
LoadLocation with code.
MustDate is the time.Time at year, month, day, hour, minute, second, and nanosecond in the location of locationCode.
MustLoadLocation is LoadLocation(code), but registers as a t.Helper() and fatals t if that errors.
Stopped is ctxʹ ≈ ctx such that In(ctxʹ) is t.
Using is ctxʹ ≈ ctx such that In(ctxʹ) is c.Now().
WallIn is tʹ ≈ t such that tʹ.Location() is l.

# Constants

Key of Clock in context.Context.

# Variables

Comparer of time.Times Date(), Clock(), Nanosecond(), and Location().String()s.
LocationComparer of *time.Locations’ String()s.

# Interfaces

Clock lets you know the current time.Time.

# Type aliases

ClockFunc for functions that implement Clock.