Skip to content

span/calculate

  • The core functions, which every industry uses.
  • spanMs: Return the exact elapsed milliseconds between two ISO 8601 instant strings.
  • spanNs: Return the exact elapsed nanoseconds between two ISO 8601 instant strings.
  • spanSeconds: Return the exact elapsed seconds between two ISO 8601 instant strings.
  • spanWallClock: Return the wall-clock distance between two zoned datetime strings — calendar time, not elapsed time.

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.