Versions in this module Expand all Collapse all v1 v1.1.0 Sep 9, 2026 v1.0.0 Aug 26, 2026 Changes in this version + const HardMaxPeriods + const HardMaxSteps + var ErrBounds = errors.New("temporal: invalid bounds") + var ErrEmpty = errors.New("temporal: empty interval") + var ErrInvalidTime = errors.New("temporal: invalid local time") + var ErrLimit = errors.New("temporal: resource limit exceeded") + var ErrOverflow = errors.New("temporal: arithmetic overflow") + var ErrParse = errors.New("temporal: parse error") + var ErrPrecision = errors.New("temporal: precision exceeded") + var ErrReversed = errors.New("temporal: reversed interval") + var ErrStep = errors.New("temporal: invalid step") + var ErrUnsupported = errors.New("temporal: unsupported operation") + type Bounds uint8 + const Closed + const ClosedOpen + const Open + const OpenClosed + func AllBounds() []Bounds + func (b *Bounds) UnmarshalText(text []byte) error + func (b Bounds) ExcludeEnd() Bounds + func (b Bounds) ExcludeStart() Bounds + func (b Bounds) IncludeEnd() Bounds + func (b Bounds) IncludeStart() Bounds + func (b Bounds) Includes(side Side) (bool, error) + func (b Bounds) IncludesEnd() bool + func (b Bounds) IncludesStart() bool + func (b Bounds) MarshalText() ([]byte, error) + func (b Bounds) String() string + func (b Bounds) Valid() bool + func (b Bounds) WithSide(side Side, included bool) (Bounds, error) + type LimitError struct + Field string + Max int + Value int + func (e *LimitError) Error() string + func (e *LimitError) Unwrap() error + type Limits struct + ErrorBytes int + FormatBytes int + InputPeriods int + OutputPeriods int + ParseBytes int + ParserDepth int + Precision int + Steps int + func DefaultLimits() Limits + func (l Limits) Resolve() Limits + func (l Limits) Validate() error + type Relation uint8 + const After + const Before + const Contains + const During + const Equal + const FinishedBy + const Finishes + const Meets + const MetBy + const OverlappedBy + const Overlaps + const RelationInvalid + const StartedBy + const Starts + func AllRelations() []Relation + func (r Relation) Converse() Relation + func (r Relation) String() string + func (r Relation) Valid() bool + type Side uint8 + const End + const Start + func (s Side) String() string + func (s Side) Valid() bool