|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.util.OLEDate
| Field Summary | |
static OLEDate |
CURRENT_SERVER_TIME
A date value that can signal the server to use its current time rather than any specific time sent by the client. |
| Constructor Summary | |
OLEDate()
Creates a new OLEDate from the current time. |
|
OLEDate(java.util.Date date)
|
|
OLEDate(double oletime)
Creates a new OLEDate given a double which is an OLEDateTime representing the number of days since midnight January 1, 1899. |
|
OLEDate(long javatime)
Creates a new OLEDate given a long value as would be returned from the Java Date class method getTime(). |
|
OLEDate(OLEDate oledate)
Creates a new OLEDate from an existing OLEDate. |
|
| Method Summary | |
java.util.Date |
createDate()
|
static double |
doubleFromLong(long val)
|
boolean |
equals(java.lang.Object obj)
|
double |
getDoubleValue()
Returns the OLEDate's double value for this date. |
long |
getLongValue()
Returns the Java based long time for this OLEDate value. |
OLEDate |
getUTCNoon()
Returns an OLEDate whose value is UTC noon of the provided date. |
int |
hashCode()
|
java.lang.String |
localString(int dateFormat,
int timeFormat)
|
static long |
longFromDouble(double dbl)
|
java.lang.String |
toISO8601String()
Returns an ISO8601 string representation of this time using GMT as the timezone. |
java.lang.String |
toString()
Simple display of the date using the default Locale and the DateFormat.LONG values for the date and time. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static OLEDate CURRENT_SERVER_TIME
| Constructor Detail |
public OLEDate()
public OLEDate(double oletime)
public OLEDate(long javatime)
public OLEDate(java.util.Date date)
public OLEDate(OLEDate oledate)
| Method Detail |
public double getDoubleValue()
public long getLongValue()
public java.util.Date createDate()
public static long longFromDouble(double dbl)
public static double doubleFromLong(long val)
public OLEDate getUTCNoon()
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String localString(int dateFormat,
int timeFormat)
public java.lang.String toISO8601String()
ISO8601public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||