Class DateUtils
-
- All Implemented Interfaces:
public final class DateUtils
-
-
Method Summary
Modifier and Type Method Description final static Booleanafter(Date $self, Date that)Tests if this date is after that date. final static Datemax(Date dateA, Date dateB)Returns the greater of two dates. final static Datemin(Date dateA, Date dateB)final static DatemaxOf(Date dates)final static DateminOf(Date dates)final static BooleaninOffsetWith(Date $self, Date other, Long offset)Check if current date has difference with other no more that offset. final static TimeDurationdiff(Date $self, Long otherTime)Returns difference between this date and the otherTime in TimeDuration. final static TimeDurationdiff(Date $self, Date that)Returns difference between this date and that date in TimeDuration. -
-
Method Detail
-
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 TimeDuration diff(Date $self, Long otherTime)
Returns difference between this date and the otherTime in TimeDuration.
-
diff
final static TimeDuration diff(Date $self, Date that)
Returns difference between this date and that date in TimeDuration.
-
-
-
-