Skip to content

zoned/convert

  • The core functions, which every industry uses.
  • convertPlainDateTimeToZoned: Attach the specified timeZone to a plain datetime string and return a zoned ISO 8601 datetime string.
  • convertZonedToCalendar: Express a zoned datetime in a calendar system: the RFC 9557 string Temporal.ZonedDateTime#toString() writes for that instant, zone and calendar.
  • convertZonedToPlainDateTime: Convert a zoned ISO 8601 datetime string to a plain datetime string.
  • convertZonedToUnix: Convert an ISO 8601 zoned datetime string to a unix epoch value in milliseconds (default) or seconds.
  • convertZonedToUtc: Convert an ISO 8601 zoned datetime string to a UTC Instant string (ISO).
  • convertZonedToZoned: Convert a zoned ISO 8601 datetime string to the same instant in a different timeZone.

Last updated:

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.