| Constructor and Description |
|---|
NSDate(java.util.Date theDate)
Constructor.
|
NSDate(double theDouble)
Constructor for
Double values. |
| Modifier and Type | Method and Description |
|---|---|
static java.text.SimpleDateFormat |
getFormatter()
Get the format used for dates in Property List files
|
long |
getTime() |
java.util.Date |
getValue()
Get the unmodifiable value of this object.
|
boolean |
isTrue()
Return whether or not the value evaluates to true.
|
byte[] |
toBytes()
Get the raw data of the value.
|
java.util.Date |
toDate()
Get the
Date represented by this object. |
double |
toDouble()
Generate a double value which represents the
Date contained within the object. |
long |
toLong()
Return the value as a long.
|
equals, fromObject, hashCode, toBoolean, toInteger, toList, toListObject, toMap, toMapObject, toNumber, toObject, toStream, toStringpublic NSDate(java.util.Date theDate)
theDate - value of the new objectpublic NSDate(double theDouble)
Double values.
Use this constructor for values returned by the toDouble() method.public static java.text.SimpleDateFormat getFormatter()
public java.util.Date getValue()
public java.util.Date toDate()
Date represented by this object.public long getTime()
Date.getTime()public boolean isTrue()
Return whether or not the value evaluates to true.
A value returns to true if and only if
NSBoolean type NSBoolean.TRUENSString which has a length greater than zero and does not equal "NO" or "False" (case insensitive)NSNumber greater than 0NSCollection which contains more than zero elementsNSDateNSData with a length greater than 0public long toLong()
NSInteger
the long value is derived from the actual value.public double toDouble()
Date contained within the object.
This value is used by the binary Property List format.