Class DateTimeUtils


  • public final class DateTimeUtils
    extends java.lang.Object
    Date time utilities.
    Since:
    16.0.0
    Version:
    $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Calendar toMidnight​(java.util.Date date)
      Returns a calendar equivalent to the given date object but zeroing hour, minute, second and millisecond fields.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toMidnight

        public static java.util.Calendar toMidnight​(java.util.Date date)
        Returns a calendar equivalent to the given date object but zeroing hour, minute, second and millisecond fields.
        Parameters:
        date - the date
        Returns:
        a calendar equivalent to the given date object but zeroing hour, minute, second and millisecond fields.
        Since:
        16.0.0