Package com.logicaldoc.util.time
Class JulianCalendarUtil
java.lang.Object
com.logicaldoc.util.time.JulianCalendarUtil
Utility methods to handle dates in the Julian epoch. Based on correction
rules published here:
https://www.urbisetorbis.org/conversione-giuliana-a-gregoriana/
- Since:
- 8.8.6
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isJulianDate
(Date date) Checks if a date is before the institution of the gregorian calendar on Oct 4th 1582.static Date
toGregorian
(Date julianDate) static Date
-
Method Details
-
isJulianDate
Checks if a date is before the institution of the gregorian calendar on Oct 4th 1582.- Parameters:
date
- The date to check- Returns:
- true only if the date falls in the julian period
-
toGregorian
-
toJulian
-