Socket
Socket
Sign inDemoInstall

timezone

Package Overview
Dependencies
0
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    timezone


Version published
Weekly downloads
22K
increased by16.21%
Maintainers
1
Install size
2.05 MB
Created
Weekly downloads
 

Readme

Source

NODE TIMEZONE

Development tasks:

  • Parse Olson file.
  • Create searchable structure for offsets and rules.
  • Create Olson file compiler utility.
  • Create tests with controls generated by a mature timezone library such as CPAN's DateTime::TimeZone or UNIX date.
  • Create a timezone conversion method.
  • Create a date offset method.
  • Create French and German locales to seed the locale set.

Decisions:

  • Olson files are compiled into JSON, loaded as JSON.
  • On the browser side, it is the job of the client to initialize the timezone data, to load it and whatnot.
  • In Node.js, timezone data is loaded synchonously as needed, or at startup.
  • Make a magic function that does format, parse and date math based on parameter order, to simplify import and minimize burden on namespace.

FAQs

Last updated on 14 Oct 2011

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