|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.interfaceware.chameleon.ChameleonDateTime
This class handles Date Time objects.
DblDate| Constructor Summary | |
ChameleonDateTime()
Construct a ChameleonDateTime object. |
|
ChameleonDateTime(DblDate Value)
Construct a ChameleonDateTime object with the specified DblDate. |
|
ChameleonDateTime(long Handle)
Construct a ChameleonDateTime object with the specified long Date Time handle. |
|
ChameleonDateTime(java.lang.String dateString)
Construct a ChameleonDateTime object by parsing a string to produce a date. |
|
| Method Summary | |
protected void |
finalize()
Finalizer that invokes the release method. |
java.lang.String |
format(java.lang.String FormatString)
Return the date as a string using the format string passed according to the formatting rules for the ANSI C strftime function. |
protected long |
handle()
Get the Date Time handle for the class object. |
boolean |
isNull()
Check whether the ChameleonDateTime object is empty. |
static ChameleonDateTime |
now()
Get the current Date Time to the nearest millisecond of the system clock. |
void |
release()
Free the ChameleonDateTime object handle. |
void |
setValue(DblDate Value)
Set the Date Time value with the specified DblDate. |
void |
setZone(short Zone)
Set the time zone with the specified short integer. |
java.lang.String |
toString()
Convert the Date Time value of the ChameleonDateTime object to a String. |
DblDate |
value()
Get the Date Time value. |
short |
zone()
Get the time zone as a short integer. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ChameleonDateTime()
throws ChameleonException
public ChameleonDateTime(long Handle)
throws ChameleonException
public ChameleonDateTime(DblDate Value)
throws ChameleonException
public ChameleonDateTime(java.lang.String dateString)
throws ChameleonException
System.setProperty(chameleon.date.format, "yyyyMMdd");
ChameleonDateTime dt = new ChameleonDateTime("20010203");
Or set the date format in the call to java:
> java -Dchameleon.date.format=yyyyMMdd
DateFormat.parse(java.lang.String)| Method Detail |
public static ChameleonDateTime now()
throws ChameleonException
ChameleonExceptionDblDate.now()
public void release()
throws ChameleonException
ChameleonException
protected void finalize()
throws ChameleonException
ChameleonException
public DblDate value()
throws ChameleonException
ChameleonException
public void setValue(DblDate Value)
throws ChameleonException
ChameleonException
public short zone()
throws ChameleonException
ChameleonException
public void setZone(short Zone)
throws ChameleonException
ChameleonException
public boolean isNull()
throws ChameleonException
ChameleonException
public java.lang.String format(java.lang.String FormatString)
throws ChameleonException
strftime function.
For example, if you want 19/01/2007 to be formatted as Jan. 19, 2007, you would use
"%b. %d, %Y" for FormatString.
ChameleonExceptionpublic java.lang.String toString()
protected long handle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||