CPDate Class Reference
[Foundation]
A representation of a single point in time.
More...
List of all members.
Detailed Description
A representation of a single point in time.
Definition at line 36 of file CPDate.j.
Member Function Documentation
- (CPComparisonResult) compare: |
|
(CPDate) |
anotherDate |
|
[implementation] |
- (id) copy |
|
|
|
[implementation] |
+ (id) date |
|
|
|
[implementation] |
+ (id) dateWithTimeIntervalSince1970: |
|
(CPTimeInterval) |
seconds |
|
[implementation] |
+ (id) dateWithTimeIntervalSinceNow: |
|
(CPTimeInterval) |
seconds |
|
[implementation] |
+ (id) dateWithTimeIntervalSinceReferenceDate: |
|
(CPTimeInterval) |
seconds |
|
[implementation] |
- (CPString) description |
|
|
|
[implementation] |
Returns the date as a string in the international format YYYY-MM-DD HH:MM:SS ±HHMM.
Definition at line 178 of file CPDate.j.
+ (id) distantFuture |
|
|
|
[implementation] |
+ (id) distantPast |
|
|
|
[implementation] |
- (CPDate) earlierDate: |
|
(CPDate) |
anotherDate |
|
[implementation] |
- (void) encodeWithCoder: |
|
(CPCoder) |
aCoder |
|
[implementation] |
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
[implementation] |
- (id) initWithString: |
|
(CPString) |
description |
|
[implementation] |
Returns a CPDate initialized with a date and time specified by the given string in international date format YYYY-MM-DD HH:MM:SS ±HHMM (e.g. 2009-11-17 17:52:04 +0000).
Definition at line 104 of file CPDate.j.
- (id) initWithTimeInterval: |
|
(CPTimeInterval) |
seconds |
sinceDate: |
|
(CPDate) |
refDate | |
|
|
| | [implementation] |
- (id) initWithTimeIntervalSince1970: |
|
(CPTimeInterval) |
seconds |
|
[implementation] |
- (id) initWithTimeIntervalSinceNow: |
|
(CPTimeInterval) |
seconds |
|
[implementation] |
- (id) initWithTimeIntervalSinceReferenceDate: |
|
(CPTimeInterval) |
seconds |
|
[implementation] |
- (BOOL) isEqual: |
|
(CPDate) |
aDate |
|
[implementation] |
- (BOOL) isEqualToDate: |
|
(CPDate) |
anotherDate |
|
[implementation] |
- (CPTimeInterval) timeIntervalSince1970 |
|
|
|
[implementation] |
- (CPTimeInterval) timeIntervalSinceDate: |
|
(CPDate) |
anotherDate |
|
[implementation] |
- (CPTimeInterval) timeIntervalSinceNow |
|
|
|
[implementation] |
- (CPTimeInterval) timeIntervalSinceReferenceDate |
|
|
|
[implementation] |
The documentation for this class was generated from the following file: