Class JulianCalendarUtil

java.lang.Object
com.logicaldoc.util.time.JulianCalendarUtil

public class JulianCalendarUtil extends Object
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 Details

    • isJulianDate

      public static boolean isJulianDate(Date date)
      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

      public static Date toGregorian(Date julianDate)
    • toJulian

      public static Date toJulian(Date gregorianDate)