julian-gregorian
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Julian-Gregorian

Converts calendar dates between the julian and gregorian calendar. It implements the calculation model from wikipedia

Usage

import CalendarConverter from 'julian-gregorian';
 
  console.log(CalendarConverter.fromGregorianToJulian(2018,8,9));  // -> ''2018-7-27''
  console.log(CalendarConverter.fromJulianToGregorian(1501,1,1));  // -> ''1501-1-11''

API

CalendarConverter.fromGregorianToJulian(year, month, day)

Converts a gregorian calendar date into a string representation of the julian calendar

CalendarConverter.fromGregorianToJulian(year, month, day)

Converts a julian calendar date into a string represantation of the gregorian calendar

license

MIT

author

tobinski

Readme

Keywords

none

Package Sidebar

Install

npm i julian-gregorian

Weekly Downloads

28

Version

1.0.0

License

ISC

Unpacked Size

14.2 kB

Total Files

8

Last publish

Collaborators

  • tobinski