Class CmisDateConverter


  • public class CmisDateConverter
    extends Object
    In CMIS the date and time are expressed in the Gregorian calendar.
    Author:
    mmoquillon
    • Method Detail

      • millisToCalendar

        @Nonnull
        public static GregorianCalendar millisToCalendar​(long millis)
        Converts milliseconds from Epoch into a GregorianCalendar object, setting the timezone to GMT and cutting milliseconds off.
      • calendarToMillis

        public static long calendarToMillis​(@Nonnull
                                            GregorianCalendar calendar)
        Converts a date in the GregorianCalendar calendar into the number of milliseconds from Epoch.
        Parameters:
        calendar - a GregorianCalendar object.
        Returns:
        the number of milliseconds from Epoch.