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

timezone

Package Overview
Dependencies
Maintainers
0
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
decreased by-8.75%
Maintainers
0
Weekly downloads
 
Created
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.

NODE_PATH=lib vows vows/*.js --spec

FAQs

Package last updated on 16 Mar 2011

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