All Packages Class Hierarchy This Package Previous Next Index
Class key.DateTime
java.lang.Object
|
+----java.util.Date
|
+----key.DateTime
- public final class DateTime
- extends Date
- implements Storable
-
DateTime()
-
-
DateTime(long)
- Constructs a new time with the specified duration
in seconds
-
add(Duration)
- Increments this DateTime by the supplied Duration
-
difference(DateTime)
- Calculates the difference between this datetime
and the supplied datetime
-
loadFrom(DataInput)
-
-
toString()
-
-
toString(Player)
-
-
writeTo(DataOutput)
-
DateTime
public DateTime()
DateTime
public DateTime(long date)
- Constructs a new time with the specified duration
in seconds
difference
public Duration difference(DateTime dt)
- Calculates the difference between this datetime
and the supplied datetime
add
public void add(Duration d)
- Increments this DateTime by the supplied Duration
loadFrom
public void loadFrom(DataInput from) throws IOException
writeTo
public void writeTo(DataOutput to) throws IOException
toString
public String toString()
- Overrides:
- toString in class Date
toString
public String toString(Player observer)
All Packages Class Hierarchy This Package Previous Next Index