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

world-calendars

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

world-calendars

Convert between various world calendars

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
162K
decreased by-12.62%
Maintainers
2
Weekly downloads
 
Created
Source

world-calendars

Node module for converting between various calendars

This project takes kbwood/calendars and transforms them from a jQuery plugin to a node module. Many thanks to Keith Wood and all of the contributors to the original project! We support all the calendars in that project plus the Chinese lunar calendar.

kbwood/calendars was originally pulled at version 2.0.2 in October 2016.

The initial implementation converts all built-in calendars and localizations, including the plus module, but not the validation or picker functionality. Also includes basic test functionality.

Typical usage for converting from one date system to another goes through Julian days:

var calendars = require('world-calendars');

var gregorian = calendars.instance();
var nepali = calendars.instance('nepali');

// gives nepali date 2073-07-15
var nepaliHalloween = nepali.fromJD(gregorian.newDate(2016, 10, 31).toJD());

Keywords

FAQs

Package last updated on 14 Dec 2016

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