Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

compact-timezone-list

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compact-timezone-list

Array of timezones with their long and short names, and GMT offsets.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-18.62%
Maintainers
1
Weekly downloads
 
Created
Source

compact-timezone-list

This package contains an array of timezones based on conventional options found online. It does not follow any complete data set, but all names are according to the tz format: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

More specifically, the fields in the array are: – offset, a string from '-11:00' to '+14:00' representing the UTC offset

  • label, a readable label that contains the offset and a longer, descriptive name of the timezone
  • tzCode, the value from the tz standard

Install

npm install compact-timezone-list --save
# or
yarn add compact-timezone-list

Example:

 import timezones from 'compact-timezone-list';
 // or
 import { minimalTimezoneSet } from 'compact-timezone-list';

Details

  • The default export provides a long list of options, with multiple suggestions for each UTC offset.
  • The minimalTimezoneSet export provides one option per offset type, with a favourite chosen to represent each offset. This is mostly targeted to small, western-focused apps. But, every UTC offset is included.

Keywords

FAQs

Package last updated on 13 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc