|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.eclipse.birt.core.script.NativeDateTimeSpan
public class NativeDateTimeSpan
The static DateTimeSpan object provides methods to determine the amount of time between two date/times, and to add or subtract time spans. Provides a set of functions for working with the difference between two dates.
Field Summary | |
---|---|
protected static java.util.logging.Logger |
logger
logger used to log syntax errors. |
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
NativeDateTimeSpan()
The zero-argument constructor used by Rhino runtime to create instances |
Method Summary | |
---|---|
java.lang.String |
getClassName()
|
static java.lang.Object |
jsStaticFunction_addDate(java.lang.Object start,
int years,
int months,
int days)
|
static java.lang.Object |
jsStaticFunction_addTime(java.lang.Object start,
int hours,
int minutes,
int seconds)
|
static int |
jsStaticFunction_days(java.lang.Object start,
java.lang.Object end)
|
static int |
jsStaticFunction_hours(java.lang.Object start,
java.lang.Object end)
|
static int |
jsStaticFunction_minutes(java.lang.Object start,
java.lang.Object end)
|
static int |
jsStaticFunction_months(java.lang.Object start,
java.lang.Object end)
|
static int |
jsStaticFunction_seconds(java.lang.Object start,
java.lang.Object end)
|
static java.lang.Object |
jsStaticFunction_subDate(java.lang.Object start,
int years,
int months,
int days)
|
static java.lang.Object |
jsStaticFunction_subTime(java.lang.Object start,
int hours,
int minutes,
int seconds)
|
static int |
jsStaticFunction_years(java.lang.Object start,
java.lang.Object end)
|
protected static java.util.Date |
toDate(java.lang.Object value)
convert java script object to double |
protected static int |
toInt(java.lang.Object value)
convert java script object to int |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.logging.Logger logger
Constructor Detail |
---|
public NativeDateTimeSpan()
Method Detail |
---|
public java.lang.String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
protected static java.util.Date toDate(java.lang.Object value)
value
- js object
protected static int toInt(java.lang.Object value)
value
- js object
public static int jsStaticFunction_years(java.lang.Object start, java.lang.Object end)
public static int jsStaticFunction_months(java.lang.Object start, java.lang.Object end)
public static int jsStaticFunction_days(java.lang.Object start, java.lang.Object end)
public static int jsStaticFunction_hours(java.lang.Object start, java.lang.Object end)
public static int jsStaticFunction_minutes(java.lang.Object start, java.lang.Object end)
public static int jsStaticFunction_seconds(java.lang.Object start, java.lang.Object end)
public static java.lang.Object jsStaticFunction_addDate(java.lang.Object start, int years, int months, int days)
public static java.lang.Object jsStaticFunction_addTime(java.lang.Object start, int hours, int minutes, int seconds)
public static java.lang.Object jsStaticFunction_subDate(java.lang.Object start, int years, int months, int days)
public static java.lang.Object jsStaticFunction_subTime(java.lang.Object start, int hours, int minutes, int seconds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |