Package org.alfresco.util
Class DateUtil
- java.lang.Object
-
- org.alfresco.util.DateUtil
-
public class DateUtil extends java.lang.ObjectA utility class for working with dates.- Author:
- Jamal Kaabi-Mofrad
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcalculateDays(long startMs, long endMs)Calculate the number of days between start and end dates based on the default timezone.
-
-
-
Method Detail
-
calculateDays
public static int calculateDays(long startMs, long endMs)Calculate the number of days between start and end dates based on the default timezone. If the end date is before the start date, the returned value is negative.- Parameters:
startMs- start date in millisecondsendMs- end date in milliseconds- Returns:
- number days between
-
-