net.sf.borg.common
Class DateUtil
java.lang.Object
net.sf.borg.common.DateUtil
public class DateUtil
- extends Object
Some common date utility logic
|
Method Summary |
static int |
dayOfEpoch(Date d)
return the number of the day of the epoch for a given date. |
static boolean |
isAfter(Date d1,
Date d2)
Checks if one date falls on a later calendar day than another. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateUtil
public DateUtil()
isAfter
public static boolean isAfter(Date d1,
Date d2)
- Checks if one date falls on a later calendar day than another.
- Parameters:
d1 - the first dated2 - the second date
- Returns:
- true, if is after
dayOfEpoch
public static int dayOfEpoch(Date d)
- return the number of the day of the epoch for a given date. this provides
a decent Date to int converter that returns the same value for all Dates
on a given day.
- Parameters:
d - the date
- Returns:
- the days from the beginning of the epoch until d
Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae