net.sourceforge.jpalm.palmdb
Class Date

java.lang.Object
  extended by net.sourceforge.jpalm.palmdb.Date

public class Date
extends java.lang.Object

A date in a Palm database.


Field Summary
static long PALM_EPOCH_MILLISECONDS
          The Palm's epoch (January 1, 1904) relative to Java's epoch (January 1, 1970) in milliseconds.
-2082844800000L
 
Constructor Summary
Date()
          Creates a new date from the current date.
Date(java.util.Date date)
          Creates a new date from a java date.
Date(net.sourceforge.juint.UInt32 seconds)
          Creates a new date from the number of seconds since the Palm epoch.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.util.Date getDate()
          Gets the java date representation of this date.
 net.sourceforge.juint.UInt32 getSeconds()
          Gets the of seconds since the Palm epoch.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PALM_EPOCH_MILLISECONDS

public static final long PALM_EPOCH_MILLISECONDS
The Palm's epoch (January 1, 1904) relative to Java's epoch (January 1, 1970) in milliseconds.
-2082844800000L

See Also:
Constant Field Values
Constructor Detail

Date

public Date(net.sourceforge.juint.UInt32 seconds)
Creates a new date from the number of seconds since the Palm epoch.

Parameters:
seconds - the number of seconds since the Palm epoch

Date

public Date(java.util.Date date)
Creates a new date from a java date.

Parameters:
date - a date

Date

public Date()
Creates a new date from the current date.

Method Detail

getSeconds

public net.sourceforge.juint.UInt32 getSeconds()
Gets the of seconds since the Palm epoch.

Returns:
the number of seconds since the Palm epoch

getDate

public java.util.Date getDate()
Gets the java date representation of this date.

Returns:
the java date

equals

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