Options
All
  • Public
  • Public/Protected
  • All
Menu

@jetblack/date

Timezone-aware date manipulation for JavaScript.

Overview

This is a toolkit for working with dates and timezones.

JavaScript provides Date as a standard built-in object. It represents the date as the number of milliseconds since 1 January 1970 UTC, and provides methods to manipulate the date in the local and UTC timezones.

This library provides two things:

  • Timezone aware convenience methods for manipulating dates.
  • The ability to use IANA timezones (e.g. America/Chicago).

The IANA timezone database has been made available in JSON format by a second project jetblack-tzdata. This allows the timezone data to be accessed statically, or dynamically through an HTTP GET (e.g. with fetch).

What Next ?

See Getting Started

Generated using TypeDoc