Package 

Class DateUtils

  • All Implemented Interfaces:

    
    public final class DateUtils
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean after(Date $self, Date that) Tests if this date is after that date.
      final static Date max(Date dateA, Date dateB) Returns the greater of two dates.
      final static Boolean inOffsetWith(Date $self, Date other, Long offset) Check if current date has difference with other no more that offset.
      final static Long diff(Date $self, Date that) Returns difference between this date and that date in TimeDuration.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • max

         final static Date max(Date dateA, Date dateB)

        Returns the greater of two dates.

      • inOffsetWith

         final static Boolean inOffsetWith(Date $self, Date other, Long offset)

        Check if current date has difference with other no more that offset.

      • diff

         final static Long diff(Date $self, Date that)

        Returns difference between this date and that date in TimeDuration.