Class DateTimeUtils


  • public final class DateTimeUtils
    extends java.lang.Object
    Date time utilities.
    Since:
    16.0.0
    Version:
    $Revision$ $Date$
    • 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