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

Constructor Index

 o DateTime()
 o DateTime(long)
Constructs a new time with the specified duration in seconds

Method Index

 o add(Duration)
Increments this DateTime by the supplied Duration
 o difference(DateTime)
Calculates the difference between this datetime and the supplied datetime
 o loadFrom(DataInput)
 o toString()
 o toString(Player)
 o writeTo(DataOutput)

Constructors

 o DateTime
 public DateTime()
 o DateTime
 public DateTime(long date)
Constructs a new time with the specified duration in seconds

Methods

 o difference
 public Duration difference(DateTime dt)
Calculates the difference between this datetime and the supplied datetime

 o add
 public void add(Duration d)
Increments this DateTime by the supplied Duration

 o loadFrom
 public void loadFrom(DataInput from) throws IOException
 o writeTo
 public void writeTo(DataOutput to) throws IOException
 o toString
 public String toString()
Overrides:
toString in class Date
 o toString
 public String toString(Player observer)

All Packages  Class Hierarchy  This Package  Previous  Next  Index