DCT Lightfoot v3 API specification

java.util
Class Date

java.lang.Object
  |
  +--java.util.Date

public class Date
extends Object

Represent a date


Constructor Summary
Date()
          Create a new date
Date(long date)
          Create a new date
 
Method Summary
 boolean equals(Object obj)
          Test if it is equals another object
 long getTime()
          Get the time represented by this date
 int hashCode()
          Return the hash code
 void setTime(long time)
          Set the time
 java.lang.String toString()
          Returns the date as a string of the form
Www Mmm Dd hh:mm:ss NNN yyyy, e.g.
Sun Feb 17 17:01:45 GMT 2012
Note that the Weekdayt is only accurate up until the year 4000
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date()
Create a new date


Date

public Date(long date)
Create a new date

Parameters:
date - The value to use
Method Detail

getTime

public long getTime()
Get the time represented by this date

Returns:
the time

setTime

public void setTime(long time)
Set the time

Parameters:
time - The time to set

equals

public boolean equals(Object obj)
Test if it is equals another object

Overrides:
equals in class Object
Parameters:
obj - The object
Returns:
true if it is equals

hashCode

public int hashCode()
Return the hash code

Overrides:
hashCode in class Object
Returns:
the hash code

toString

public java.lang.String toString()
Returns the date as a string of the form
Www Mmm Dd hh:mm:ss NNN yyyy, e.g.
Sun Feb 17 17:01:45 GMT 2012
Note that the Weekdayt is only accurate up until the year 4000

Overrides:
toString in class Object
Returns:
the string

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification