Socket
Socket
Sign inDemoInstall

timezone-abbr-offsets

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    timezone-abbr-offsets

Timezone abbreviations mapped to offset from UTC in minutes


Version published
Weekly downloads
115
increased by64.29%
Maintainers
1
Install size
3.85 kB
Created
Weekly downloads
 

Readme

Source

timezone-abbr-offsets

Timezone abbreviations mapped to offsets from UTC in minutes. May return unexpected results for ambiguous abbreviations.

Example

var timezones = require('timezone-abbr-offsets')
console.log(timezones.CEST) // -> 120
console.log(timezones.UYST) // -> -120
console.log(timezones.X) // -> -660

Explanation

This is a simple object with the timezone abbreviations from Wikipedia1 and one-character military timezones from http://timeanddate.com. When timezone abbreviations are ambiguous, the timezone that had more searches on Google Trends is used (like this). There were two cases where Google Trends couldn't help:

  • CST: Stands for Central Standard Time in Australia and North America. This is mapped to UTC-06:00 (i.e. -360)
  • LHST: Stands for Lord Howe Standard Time and Lord Howe Summer Time. Google Trends didn't have enough search volume to make a comparison, so this is mapped to UTC+10:30 (i.e. 630)

1 Accesed on 2015-05-27 12:45 UTC

Keywords

FAQs

Last updated on 08 Jun 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc