net.sf.hloader.util
Class DateUtil

java.lang.Object
  extended bynet.sf.hloader.util.DateUtil

public class DateUtil
extends java.lang.Object

Date Util class for long date arithmetic.

Complemented by the DateConverter class that will perform the conversion

from julianDayMilliSeconds to Date. * @author Brett Dargan

Version:
$Id: DateUtil.java,v 1.1 2004/03/09 13:55:24 bdargan Exp $

Constructor Summary
DateUtil()
           
 
Method Summary
 long addDays(int day)
          add Days.
 java.util.Calendar getCal()
          current calendar.
 long getEndOfDay()
          get the final second of the day in julianMilliseconds
 long getStartOfDay()
          getStartOf the day 00.00.00 in julianMilliseconds
 long getTime()
          get the current time in millis
 void setCal(java.util.Calendar cal)
          set Calendar
 
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

addDays

public long addDays(int day)
add Days.

Parameters:
day -
Returns:

getStartOfDay

public long getStartOfDay()
getStartOf the day 00.00.00 in julianMilliseconds

Returns:

getEndOfDay

public long getEndOfDay()
get the final second of the day in julianMilliseconds

Returns:

getTime

public long getTime()
get the current time in millis

Returns:

getCal

public java.util.Calendar getCal()
current calendar.

Returns:

setCal

public void setCal(java.util.Calendar cal)
set Calendar

Parameters:
cal -