Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.borg.common
Class DateUtil

    java.lang.Object
      net.sf.borg.common.DateUtil

    public class DateUtil

extends Object

Some common date utility logic

Constructor Summary
`DateUtil()`

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`

Constructor Detail

### DateUtil

    public DateUtil()

Method Detail

### 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 date
    `d2` - 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic