Skip to content

Converts calendar dates between the julian and gregorian calendar

Notifications You must be signed in to change notification settings

tobinski/julian-gregorian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converts calendar dates between the julian and gregorian calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published