|
||||||||||
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.DateTimeImpl
public final class DateTimeImpl
Printable and Castable DateTime Object
Constructor Summary | |
---|---|
DateTimeImpl()
|
|
DateTimeImpl(Calendar calendar)
|
|
DateTimeImpl(Config config)
|
|
DateTimeImpl(Config config,
long utcTime,
boolean doOffset)
|
|
DateTimeImpl(Date date)
|
|
DateTimeImpl(long utcTime,
boolean doOffset)
|
|
DateTimeImpl(PageContext pc)
|
|
DateTimeImpl(PageContext pc,
long utcTime,
boolean doOffset)
|
Method Summary | |
---|---|
static long |
addOffset(Config config,
long utcTime)
|
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 |
String |
castToString(TimeZone tz)
|
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
long |
sizeOf()
return the size of the object |
double |
toDoubleValue()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
String |
toString()
|
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, UTC |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateTimeImpl(PageContext pc)
public DateTimeImpl(Config config)
public DateTimeImpl()
public DateTimeImpl(PageContext pc, long utcTime, boolean doOffset)
public DateTimeImpl(Config config, long utcTime, boolean doOffset)
public DateTimeImpl(long utcTime, boolean doOffset)
public DateTimeImpl(Date date)
public DateTimeImpl(Calendar calendar)
Method Detail |
---|
public static long addOffset(Config config, long utcTime)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public String castToString()
Castable
castToString
in interface Castable
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
Castable.castToString(java.lang.String)
public String castToString(TimeZone tz)
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
ExpressionException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue()
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue(double)
public DateTime castToDateTime()
Castable
castToDateTime
in interface Castable
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public double toDoubleValue()
toDoubleValue
in class DateTime
DateTime.toDoubleValue()
public int compareTo(boolean b)
compareTo
in interface Castable
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(double)
public int compareTo(String str)
compareTo
in interface Castable
Castable.compareTo(java.lang.String)
public String toString()
toString
in class Date
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |