API Reference
Atemporal provides a comprehensive and type-safe API for date-time manipulation, built on top of the modern Temporal API.
Core API
- Creating Instances: How to initialize Atemporal from strings, dates, timestamps, and Firestore objects.
- Manipulation: Immutably adding, subtracting, and setting date components.
- Formatting: Versatile string formatting using tokens or
Intloptions. - Comparison & Difference: Comparing dates and calculating time differences.
- Durations & Utilities: Working with Temporal Durations and TypeScript type guards.
- Generating Ranges: Creating arrays of dates or formatted strings within a period.
Plugins
For extended functionality like relative time (.fromNow()), business day calculations, or appointment slots, check out the Plugins section.