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.
|
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.
|
public 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.TRUE
NSString
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 elementsNSDate
NSData
with a length greater than 0public long toLong()
NSInteger
the long value is derived from the actual value.