|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
railo.runtime.type.dt.DateTime
railo.runtime.type.dt.Time
railo.runtime.type.dt.TimeImpl
public final class TimeImpl
Printable and Castable Time Object (at the moment, same as DateTime)
Constructor Summary | |
---|---|
TimeImpl(boolean addOffset)
|
|
TimeImpl(Date date)
|
|
TimeImpl(long utcTime)
|
|
TimeImpl(long utcTime,
boolean addOffset)
|
|
TimeImpl(PageContext pc,
boolean addOffset)
|
|
TimeImpl(PageContext pc,
long utcTime,
boolean addOffset)
|
Method Summary | |
---|---|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
double |
toDoubleValue()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeImpl(long utcTime)
public TimeImpl(boolean addOffset)
public TimeImpl(long utcTime, boolean addOffset)
public TimeImpl(PageContext pc, boolean addOffset)
public TimeImpl(PageContext pc, long utcTime, boolean addOffset)
public TimeImpl(Date date)
Method Detail |
---|
public String castToString()
Castable
castToString
in interface Castable
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
ExpressionException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue()
Castable
castToDoubleValue
in interface Castable
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public DateTime castToDateTime()
Castable
castToDateTime
in interface Castable
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
public double toDoubleValue()
toDoubleValue
in class DateTime
public int compareTo(boolean b)
compareTo
in interface Castable
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |