|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.otfeed.support.DateUtil
public final class DateUtil
Utility class: provides misc helper functions to conveniently instantiate Date class. Note that this class implicitly uses current time zone, and, therefore may not be appropriate for the applications that may be deployed in different timezones.
Method Summary | |
---|---|
static java.util.Date |
getDate(int year)
Builds Date object from date/time components. |
static java.util.Date |
getDate(int year,
int month)
Builds Date object from date/time components. |
static java.util.Date |
getDate(int year,
int month,
int day)
Builds Date object from date/time components. |
static java.util.Date |
getDate(int year,
int month,
int day,
int hour)
Builds Date object from date/time components. |
static java.util.Date |
getDate(int year,
int month,
int day,
int hour,
int minute)
Builds Date object from date/time components. |
static java.util.Date |
getDate(int year,
int month,
int day,
int hour,
int minute,
int second)
Builds Date object from date/time components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.util.Date getDate(int year, int month, int day, int hour, int minute, int second)
year
- year.month
- month.day
- day.hour
- hour.minute
- minute.second
- second.
public static final java.util.Date getDate(int year, int month, int day, int hour, int minute)
year
- year.month
- month.day
- day.hour
- hour.minute
- minute.
public static final java.util.Date getDate(int year, int month, int day, int hour)
year
- year.month
- month.day
- day.hour
- hour.
public static final java.util.Date getDate(int year, int month, int day)
year
- year.month
- month.day
- day.
public static final java.util.Date getDate(int year, int month)
year
- year.month
- month.
public static final java.util.Date getDate(int year)
year
- year.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |