libcalendar library

This package contains some utility classes and method for manipulating calendar and date time.

Functions

fromCJDNtoGregorian(int cjdn) DateTime
Converts Chronological Julian Day Number (CJDN) given by parameter cjdn to Gregorian calendar as DateTime object. The DateTime object returned will be always in UTC.
fromCJDNtoIslamic(int cjdn) DateTime
Converts Chronological Julian Day Number (CJDN) given by parameter cjdn to Islamic calendar as DateTime object. The DateTime object returned will be always in UTC.
fromGregorianToCJDN(int year, int month, int day) int
Sources: http://aa.quae.nl/en/reken/juliaansedag.html [...]
fromGregorianToIslamic(int year, int month, int day) DateTime
Converts Gregorian calendar, given by parameter year, month and day to Islamic calendar.
fromGregorianToJulianDate(DateTime dateTimeInUtc) double
Converts Gregorian date and time, given by parameter dateTimeInUtc to Julian Date.
fromIslamicToCJDN(int year, int month, int day) int
Converts Islamic calendar, given by parameter year, month and day to Chronological Julian Day Number (CJDN).
fromIslamicToGregorian(int year, int month, int day) DateTime
Converts Islamic calendar, given by parameter year, month and day to Gregorian calendar.
fromJulianDateToGregorian(double jd) DateTime
Converts Julian Date given by parameter jdto Gregorian date and time as DateTime object. The DateTime object returned will be always in UTC.