com.starbase.util
Class OLEDate

java.lang.Object
  |
  +--com.starbase.util.OLEDate

public class OLEDate
extends java.lang.Object


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

CURRENT_SERVER_TIME

public 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. Useful as an argument in some method calls.

Constructor Detail

OLEDate

public OLEDate()
Creates a new OLEDate from the current time.


OLEDate

public 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

public OLEDate(long javatime)
Creates a new OLEDate given a long value as would be returned from the Java Date class method getTime().


OLEDate

public OLEDate(java.util.Date date)

OLEDate

public OLEDate(OLEDate oledate)
Creates a new OLEDate from an existing OLEDate.

Method Detail

getDoubleValue

public double getDoubleValue()
Returns the OLEDate's double value for this date.


getLongValue

public long getLongValue()
Returns the Java based long time for this OLEDate value.


createDate

public java.util.Date createDate()

longFromDouble

public static long longFromDouble(double dbl)

doubleFromLong

public static double doubleFromLong(long val)

getUTCNoon

public OLEDate getUTCNoon()
Returns an OLEDate whose value is UTC noon of the provided date.


toString

public java.lang.String toString()
Simple display of the date using the default Locale and the DateFormat.LONG values for the date and time.

Overrides:
toString in class java.lang.Object

localString

public java.lang.String localString(int dateFormat,
                                    int timeFormat)

toISO8601String

public java.lang.String toISO8601String()
Returns an ISO8601 string representation of this time using GMT as the timezone.

Returns:
an ISO8601 string representation of this time using GMT as the timezone.
See Also:
ISO8601

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.