|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.util.DateUtil
A utility class for use with dates.
Field Summary | |
(package private) static java.sql.Date |
_minusInfinity
|
(package private) static java.sql.Date |
_plusInfinity
|
(package private) static int |
FEB
|
(package private) static int |
LEAP_DAYS_IN_FEB
|
Constructor Summary | |
DateUtil()
|
Method Summary | |
static int |
daysInMonth(int month,
int year)
Month is zero based. |
(package private) static void |
init()
|
static boolean |
leapYear(int year)
|
static int |
maxMonthSize(int month)
|
static java.sql.Date |
minusInfinity()
Return a date represting a long time in the past. |
static int |
monthSize(int month)
|
static java.sql.Date |
plusInfinity()
Return a date representing a long time in the future. |
static java.sql.Timestamp |
timestampNow()
Return a Timestamp object representing the time now. |
static boolean |
validDate(int date,
int month,
int year)
month is zero based. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static java.sql.Date _minusInfinity
static java.sql.Date _plusInfinity
static final int LEAP_DAYS_IN_FEB
static final int FEB
Constructor Detail |
public DateUtil()
Method Detail |
public static java.sql.Date minusInfinity()
public static java.sql.Date plusInfinity()
public static java.sql.Timestamp timestampNow()
public static boolean leapYear(int year)
public static int monthSize(int month)
public static int maxMonthSize(int month)
public static int daysInMonth(int month, int year)
month
- Description of Parameteryear
- Description of Parameter
public static boolean validDate(int date, int month, int year)
date
- Description of Parametermonth
- Description of Parameteryear
- Description of Parameter
static void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |