1.2.6 • Published 3 years ago

timezone-abbreviations v1.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Timezone Abbreviations

JavaScript doesn't provide abbreviations list, and moment.js might be overkill for my project, so I create a package and get the timezone abbreviations data from https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations and extract zone string from moment.js and verified by Intl.DateTimeFormat.

Usage

npm install timezone-abbreviations
import timezones from "timezone-abbreviations";

console.log(
  "timezone",
  ...timezones.filter((item) => item.abbr === "AEST") 
);

// output:
// {
//   abbr: 'AEST',
//   description: 'Australian Eastern Standard Time',
//   offset: 'UTC+10',
//   names: [
//     'Australia/Brisbane',
//     'Australia/Lindeman',
//     'Australia/Queensland'
//   ]
// }
1.2.6

3 years ago

1.2.5

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.5

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago