net.sf.plist
Class NSDate

java.lang.Object
  extended by net.sf.plist.NSObject
      extended by net.sf.plist.NSDate

public class NSDate
extends NSObject

Represents a date and time.

In this implementation, a Date is used to represent the NSDate.

See Also:
Date

Constructor Summary
NSDate(Date theDate)
          Constructor.
 
Method Summary
 Date date()
          Get the Date represented by this object.
static SimpleDateFormat getFormatter()
          Get the format used for dates in Property List files
 Date getValue()
          Get the unmodifiable value of this object.
 long time()
           
 
Methods inherited from class net.sf.plist.NSObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSDate

public NSDate(Date theDate)
Constructor.

Parameters:
theDate - value of the new object
Method Detail

getFormatter

public static SimpleDateFormat getFormatter()
Get the format used for dates in Property List files

Returns:
the date format

getValue

public Date getValue()
Get the unmodifiable value of this object.

Specified by:
getValue in class NSObject
Returns:
the value of this object
See Also:
date()

date

public Date date()
Get the Date represented by this object.

Returns:
the Date

time

public long time()
See Also:
Date.getTime()