Core Date Operations
Everything you do with plain dates and datetimes in GMT.
- Getting the Current Date and Time — read “now” as ISO strings in plain, zoned, UTC, and Unix shapes.
- Plain Arithmetic — add, subtract, and diff dates and datetimes with overflow control and rounding.
- Durations — parse, validate, combine, rebalance, total and format ISO 8601 duration strings, and write one from a unit object.
- Comparisons — order, equality, weekends, business days, and now-relative predicates.
- Formatting — locale-aware display, relative labels, calendar-day labels, and fixed machine formats.
- Relative Time — human-friendly relative strings such as “yesterday” and “in 2 hours”, for plain, zoned, Unix and UTC values.
- Parsing — extract components from ISO strings and decode interchange grammars.
- Validation — validate date/time strings, timezone identifiers, intervals, and ranges.
- Calendar Systems — express dates in non-Gregorian calendars with native arithmetic.
- Business Calendars and Roll Conventions — weekends, holidays, business-day counting, roll conventions and merged calendars.
- Operating Hours and Open-Time SLAs — is it open, how many open hours have passed, and when an open-hours SLA falls due.
- Nanosecond Precision —
bigintnanosecond instants, wire format, truncation for storage and zoned strings with sub-minute offsets. - Spans — exact elapsed time as a number, and wall-clock spans.
- Month-Day Values — birthdays and recurring holidays as
--MM-DD: validate, parse, format, compare and place in a year. - Leap Seconds and TAI — the inserted seconds, TAI minus UTC by date, which days really have a second 60, and elapsed time against the clock difference.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.