|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.util.DateHelper
public class DateHelper
Constructor Summary | |
---|---|
DateHelper()
|
Method Summary | |
---|---|
static boolean |
after(java.util.Date self,
java.util.Date date)
Answers if this Date is after the specified Date. |
static boolean |
before(java.util.Date self,
java.util.Date date)
Boolean indication of whether or not this Date occurs earlier than the Date argument. |
static int |
compareTo(java.util.Date self,
java.util.Date date)
Compare the receiver to the specified Date to determine the relative ordering. |
static long |
parse(java.lang.String string)
Deprecated. use DateFormat |
static long |
UTC(int year,
int month,
int day,
int hour,
int minute,
int second)
Deprecated. use:
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
cal.set(year + 1900, month, day, hour, minute, second);
cal.getTime().getTime(); |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateHelper()
Method Detail |
---|
public static boolean after(java.util.Date self, java.util.Date date)
date
- a Date instance to compare
public static boolean before(java.util.Date self, java.util.Date date)
Date
occurs earlier than the Date
argument.
date
- a Date instance to compare
true
if this Date
occurs earlier than date
, otherwise
false
public static int compareTo(java.util.Date self, java.util.Date date)
date
- a Date
public static long parse(java.lang.String string)
string
- the String to parse
public static long UTC(int year, int month, int day, int hour, int minute, int second)
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
cal.set(year + 1900, month, day, hour, minute, second);
cal.getTime().getTime();
year
- the year, 0 is 1900month
- the month, 0 - 11day
- the day of the month, 1 - 31hour
- the hour of day, 0 - 23minute
- the minute of the hour, 0 - 59second
- the second of the minute, 0 - 59
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |