|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.7) E10663-11 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.rules.sdk2.extensions.OracleDate
public final class OracleDate
Method Summary | |
---|---|
static oracle.jbo.domain.Timestamp |
addDaysTo(oracle.jbo.domain.Timestamp ts,
int days)
Returns a new Timestamp instance that is the result of adding the specified number of days to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addDurationTo(oracle.jbo.domain.Timestamp ts,
javax.xml.datatype.Duration duration)
Returns a new Timestamp instance that is the result of adding the specified duration to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addHoursTo(oracle.jbo.domain.Timestamp ts,
long hours)
Returns a new Timestamp instance that is the result of adding the specified number of hours to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addMillisecondsTo(oracle.jbo.domain.Timestamp ts,
long milliseconds)
Returns a new Timestamp instance that is the result of adding the specified number of milliseconds to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addMinutesTo(oracle.jbo.domain.Timestamp ts,
long minutes)
Returns a new Timestamp instance that is the result of adding the specified number of minutes to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addMonthsTo(oracle.jbo.domain.Timestamp ts,
int months)
Returns a new Timestamp instance that is the result of adding the specified number of months to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addSecondsTo(oracle.jbo.domain.Timestamp ts,
long seconds)
Returns a new Timestamp instance that is the result of adding the specified number of seconds to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addWeeksTo(oracle.jbo.domain.Timestamp ts,
int weeks)
Returns a new Timestamp instance that is the result of adding the specified number of weeks to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
addYearsTo(oracle.jbo.domain.Timestamp ts,
int years)
Returns a new Timestamp instance that is the result of adding the specified number of years to the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
fromString(java.lang.String str)
Creates a Timestamp instance for the specified ISO 8601 date and time string. |
static oracle.jbo.domain.Timestamp |
subtractDaysFrom(oracle.jbo.domain.Timestamp ts,
int days)
Returns a new Timestamp instance that is the result of subtracting the specified number of days from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractDurationFrom(oracle.jbo.domain.Timestamp ts,
javax.xml.datatype.Duration duration)
Returns a new Timestamp instance that is the result of subtracting the specified duration from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractHoursFrom(oracle.jbo.domain.Timestamp ts,
long hours)
Returns a new Timestamp instance that is the result of subtracting the specified number of hours from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractMillisecondsFrom(oracle.jbo.domain.Timestamp ts,
long milliseconds)
Returns a new Timestamp instance that is the result of subtracting the specified number of milliseconds from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractMinutesFrom(oracle.jbo.domain.Timestamp ts,
long minutes)
Returns a new Timestamp instance that is the result of subtracting the specified number of minutes from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractMonthsFrom(oracle.jbo.domain.Timestamp ts,
int months)
Returns a new Timestamp instance that is the result of subtracting the specified number of months from the date. |
static oracle.jbo.domain.Timestamp |
subtractSecondsFrom(oracle.jbo.domain.Timestamp ts,
long seconds)
Returns a new Timestamp instance that is the result of subtracting the specified number of seconds from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractWeeksFrom(oracle.jbo.domain.Timestamp ts,
int weeks)
Returns a new Timestamp instance that is the result of subtracting the specified number of weeks from the specified Timestamp instance. |
static oracle.jbo.domain.Timestamp |
subtractYearsFrom(oracle.jbo.domain.Timestamp ts,
int years)
Returns a new Timestamp instance that is the result of subtracting the specified number of years from the specified Timestamp instance. |
static java.util.GregorianCalendar |
toGregorianCalendar(oracle.jbo.domain.Timestamp ts)
Return a GregorianCalendar representing the specified Timestamp |
static java.lang.String |
toString(oracle.jbo.domain.Timestamp ts)
Return the ISO 8601 representation of the specified Timestamp instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static oracle.jbo.domain.Timestamp addYearsTo(oracle.jbo.domain.Timestamp ts, int years)
ts
- the starting Timestamp instanceyears
- the number of years to add
java.lang.NullPointerException
- if the timestamp parameter is null.public static oracle.jbo.domain.Timestamp addDurationTo(oracle.jbo.domain.Timestamp ts, javax.xml.datatype.Duration duration)
ts
- the starting Timestamp instanceduration
-
java.lang.NullPointerException
- if either parameter is null.public static oracle.jbo.domain.Timestamp addMonthsTo(oracle.jbo.domain.Timestamp ts, int months)
ts
- the starting Timestamp instancemonths
- the number of months to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp addWeeksTo(oracle.jbo.domain.Timestamp ts, int weeks)
ts
- the starting Timestamp instanceweeks
- the number of weeks to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp addDaysTo(oracle.jbo.domain.Timestamp ts, int days)
ts
- the starting Timestamp instancedays
- the number of days to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp addHoursTo(oracle.jbo.domain.Timestamp ts, long hours)
ts
- the starting Timestamp instancehours
- the number of hours to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp addMinutesTo(oracle.jbo.domain.Timestamp ts, long minutes)
ts
- the starting Timestamp instanceminutes
- the number of minutes to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp addSecondsTo(oracle.jbo.domain.Timestamp ts, long seconds)
ts
- the starting Timestamp instanceseconds
- the number of seconds to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp addMillisecondsTo(oracle.jbo.domain.Timestamp ts, long milliseconds)
ts
- the starting Timestamp instancemilliseconds
- the number of milliseconds to add
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractYearsFrom(oracle.jbo.domain.Timestamp ts, int years)
ts
- the starting Timestamp instanceyears
- the number of years to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractDurationFrom(oracle.jbo.domain.Timestamp ts, javax.xml.datatype.Duration duration)
ts
- the starting Timestamp instanceduration
-
java.lang.NullPointerException
- if either parameter is null.public static oracle.jbo.domain.Timestamp subtractMonthsFrom(oracle.jbo.domain.Timestamp ts, int months)
ts
- the starting Timestamp instancemonths
- the number of months to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractWeeksFrom(oracle.jbo.domain.Timestamp ts, int weeks)
ts
- the starting Timestamp instanceweeks
- the number of weeks to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractDaysFrom(oracle.jbo.domain.Timestamp ts, int days)
ts
- the starting Timestamp instancedays
- the number of days to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractHoursFrom(oracle.jbo.domain.Timestamp ts, long hours)
ts
- the starting Timestamp instancehours
- the number of hours to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractMinutesFrom(oracle.jbo.domain.Timestamp ts, long minutes)
ts
- the starting Timestamp instanceminutes
- the number of minutes to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractSecondsFrom(oracle.jbo.domain.Timestamp ts, long seconds)
ts
- the starting Timestamp instanceseconds
- the number of seconds to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp subtractMillisecondsFrom(oracle.jbo.domain.Timestamp ts, long milliseconds)
ts
- the starting Timestamp instancemilliseconds
- the number of milliseconds to subtract
java.lang.NullPointerException
- if the Timestamp parameter is null.public static oracle.jbo.domain.Timestamp fromString(java.lang.String str) throws java.lang.IllegalArgumentException
str
- the ISO 8601 string representation of a date and time
java.lang.IllegalArgumentException
- if an error occurs parsing the date
stringpublic static java.lang.String toString(oracle.jbo.domain.Timestamp ts)
ts
- the Timestamp instance to format
public static java.util.GregorianCalendar toGregorianCalendar(oracle.jbo.domain.Timestamp ts)
ts
- the Timestamp instance to convert
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.7) E10663-11 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |