|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1) E10663-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.rules.rl.extensions.Duration
public class Duration
| Constructor Summary | |
|---|---|
Duration() |
|
| Method Summary | |
|---|---|
static int |
compare(java.util.Calendar date1, java.util.Calendar date2)Compares two dates and returns an int value of 0 if they are equal, less than 0 if date1 represents a point in time before date2, greater than 0 if date1 represents a point in time after date2. |
static int |
compare(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Compares two dates and returns an int value of 0 if they are equal, less than 0 if date1 represents a point in time before date2, greater than 0 if date1 represents a point in time after date2. |
static int |
compare(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Compares two dates and returns an int value of 0 if they are equal, less than 0 if date1 represents a point in time before date2, greater than 0 if date1 represents a point in time after date2. |
static int |
compare(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Compares two dates and returns an int value of 0 if they are equal, less than 0 if date1 represents a point in time before date2, greater than 0 if date1 represents a point in time after date2. |
static int |
daysBetween(java.util.Calendar date1, java.util.Calendar date2) |
static int |
daysBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in days. |
static int |
daysBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in days. |
static int |
daysBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in days. |
static long |
hoursBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in hours. |
static long |
hoursBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in hours. |
static long |
hoursBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in hours. |
static long |
hoursBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in hours. |
static long |
millisecondsBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in milliseconds. |
static long |
millisecondsBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in milliseconds. |
static long |
minutesBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in minutes. |
static long |
minutesBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in minutes. |
static long |
minutesBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in minutes. |
static long |
minutesBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in minutes. |
static int |
monthsBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in months. |
static int |
monthsBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in months. |
static int |
monthsBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in months. |
static int |
monthsBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in months. |
static long |
secondsBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in seconds. |
static long |
secondsBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in seconds. |
static long |
secondsBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in seconds. |
static long |
secondsBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in seconds. |
static int |
weeksBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in weeks. |
static int |
weeksBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in weeks. |
static int |
weeksBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in weeks. |
static int |
weeksBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in weeks. |
static int |
yearsBetween(java.util.Calendar date1, java.util.Calendar date2)Returns the difference between the two dates in years. |
static int |
yearsBetween(java.util.Calendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in years. |
static int |
yearsBetween(javax.xml.datatype.XMLGregorianCalendar date1, java.util.Calendar date2)Returns the difference between the two dates in years. |
static int |
yearsBetween(javax.xml.datatype.XMLGregorianCalendar date1, javax.xml.datatype.XMLGregorianCalendar date2)Returns the difference between the two dates in years. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Duration()
| Method Detail |
|---|
public static int yearsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int yearsBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int yearsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int yearsBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int monthsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int monthsBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int monthsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int monthsBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int weeksBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int weeksBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int weeksBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int weeksBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int daysBetween(java.util.Calendar date1,
java.util.Calendar date2)
public static long hoursBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long hoursBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int daysBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int daysBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int daysBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long hoursBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long hoursBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long minutesBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long minutesBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long minutesBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long minutesBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long secondsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long secondsBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long secondsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long secondsBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long millisecondsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 and date2 are converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long millisecondsBetween(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long millisecondsBetween(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static long millisecondsBetween(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date2 is converted to GregorianCalendar before the difference is calculated.date1 -date2 -java.lang.NullPointerException - if either date1 or date2 is null.
public static int compare(java.util.Calendar date1,
java.util.Calendar date2)
date1 -date2 -
public static int compare(javax.xml.datatype.XMLGregorianCalendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 -date2 -
public static int compare(javax.xml.datatype.XMLGregorianCalendar date1,
java.util.Calendar date2)
date1 -date2 -
public static int compare(java.util.Calendar date1,
javax.xml.datatype.XMLGregorianCalendar date2)
date1 -date2 -
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1) E10663-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||