Overview of iso-fns date and time domains
iso-fns is a multi-domain, immutable, and functional DateTime package for JavaScript that mirrors the design of the Temporal Proposal. It represents date/time types as ISO8601 formatted strings, ensuring they are portable, JSON-compatible, and immutable. The library supports eight distinct domains:
- Instant: A fixed point in time (UTC), e.g.,
1969-07-20T20:17:00Z. - ZonedDateTime: A timezone-aware date/time representing a real event in a specific region, e.g.,
1995-12-07T03:24:00-08:00[America/Los_Angeles]. - DateTime: A calendar date and wall-clock time without timezone information.
- Date: A calendar date without time or timezone.
- Time: A wall-clock time without date or timezone.
- YearMonth: A date without a day component (e.g., for monthly meetings).
- MonthDay: A date without a year component (e.g., for annual holidays).
- Duration: A length of time used for arithmetic and measuring differences.