API 0.9.5
CPDate Class Reference

A representation of a single point in time. More...

#import <CPDate.h>

Inheritance diagram for CPDate:

List of all members.

Instance Methods

(CPComparisonResult) - compare:
(id) - copy
(CPString- description
(CPDate- earlierDate:
(void) - encodeWithCoder:
(id) - initWithCoder:
(id) - initWithString:
(id) - initWithTimeInterval:sinceDate:
(id) - initWithTimeIntervalSince1970:
(id) - initWithTimeIntervalSinceNow:
(id) - initWithTimeIntervalSinceReferenceDate:
(BOOL) - isEqual:
(BOOL) - isEqualToDate:
(CPDate- laterDate:
(CPTimeInterval) - timeIntervalSince1970
(CPTimeInterval) - timeIntervalSinceDate:
(CPTimeInterval) - timeIntervalSinceNow
(CPTimeInterval) - timeIntervalSinceReferenceDate

Class Methods

(id) + alloc
(id) + date
(id) + dateWithTimeIntervalSince1970:
(id) + dateWithTimeIntervalSinceNow:
(id) + dateWithTimeIntervalSinceReferenceDate:
(id) + distantFuture
(id) + distantPast
(CPString+ timezoneOffsetString:

Detailed Description

A representation of a single point in time.

Definition at line 2 of file CPDate.h.


Method Documentation

+ (id) alloc

Definition at line 38 of file CPDate.j.

- (CPComparisonResult) compare: (CPDate anotherDate

Definition at line 168 of file CPDate.j.

- (id) copy

Definition at line 204 of file CPDate.j.

+ (id) date

Definition at line 45 of file CPDate.j.

+ (id) dateWithTimeIntervalSince1970: (CPTimeInterval)  seconds

Definition at line 55 of file CPDate.j.

+ (id) dateWithTimeIntervalSinceNow: (CPTimeInterval)  seconds

Definition at line 50 of file CPDate.j.

+ (id) dateWithTimeIntervalSinceReferenceDate: (CPTimeInterval)  seconds

Definition at line 60 of file CPDate.j.

- (CPString) description

Returns the date as a string in the international format YYYY-MM-DD HH:MM:SS ±HHMM.

Definition at line 199 of file CPDate.j.

+ (id) distantFuture

Definition at line 70 of file CPDate.j.

+ (id) distantPast

Definition at line 65 of file CPDate.j.

- (CPDate) earlierDate: (CPDate anotherDate

Definition at line 173 of file CPDate.j.

- (void) encodeWithCoder: (CPCoder aCoder

Definition at line 225 of file CPDate.j.

- (id) initWithCoder: (CPCoder aCoder

Definition at line 215 of file CPDate.j.

- (id) initWithString: (CPString description

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 

Definition at line 93 of file CPDate.j.

- (id) initWithTimeIntervalSince1970: (CPTimeInterval)  seconds

Definition at line 81 of file CPDate.j.

- (id) initWithTimeIntervalSinceNow: (CPTimeInterval)  seconds

Definition at line 75 of file CPDate.j.

- (id) initWithTimeIntervalSinceReferenceDate: (CPTimeInterval)  seconds

Definition at line 87 of file CPDate.j.

- (BOOL) isEqual: (CPDate aDate

Definition at line 149 of file CPDate.j.

- (BOOL) isEqualToDate: (CPDate aDate

Definition at line 160 of file CPDate.j.

- (CPDate) laterDate: (CPDate anotherDate

Definition at line 178 of file CPDate.j.

- (CPTimeInterval) timeIntervalSince1970

Definition at line 134 of file CPDate.j.

- (CPTimeInterval) timeIntervalSinceDate: (CPDate anotherDate

Definition at line 124 of file CPDate.j.

- (CPTimeInterval) timeIntervalSinceNow

Definition at line 129 of file CPDate.j.

- (CPTimeInterval) timeIntervalSinceReferenceDate

Definition at line 139 of file CPDate.j.

+ (CPString) timezoneOffsetString: (int)  timezoneOffset

Returns timezone offset as a string in ±HHMM format

Definition at line 186 of file CPDate.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines