API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPDate Class Reference

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

#import <CPDate.h>

+ Inheritance diagram for CPDate:

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
implementation

Definition at line 36 of file CPDate.j.

- (CPComparisonResult) compare: (CPDate anotherDate
implementation

Definition at line 166 of file CPDate.j.

- (id) copy
implementation

Definition at line 202 of file CPDate.j.

+ (id) date
implementation

Definition at line 43 of file CPDate.j.

+ (id) dateWithTimeIntervalSince1970: (CPTimeInterval)  seconds
implementation

Definition at line 53 of file CPDate.j.

+ (id) dateWithTimeIntervalSinceNow: (CPTimeInterval)  seconds
implementation

Definition at line 48 of file CPDate.j.

+ (id) dateWithTimeIntervalSinceReferenceDate: (CPTimeInterval)  seconds
implementation

Definition at line 58 of file CPDate.j.

- (CPString) description
implementation

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

Definition at line 197 of file CPDate.j.

+ (id) distantFuture
implementation

Definition at line 68 of file CPDate.j.

+ (id) distantPast
implementation

Definition at line 63 of file CPDate.j.

- (CPDate) earlierDate: (CPDate anotherDate
implementation

Definition at line 171 of file CPDate.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPDate(CPCoding).

Definition at line 223 of file CPDate.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPDate(CPCoding).

Definition at line 213 of file CPDate.j.

- (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 102 of file CPDate.j.

- (id) initWithTimeInterval: (CPTimeInterval)  seconds
sinceDate: (CPDate refDate 
implementation

Definition at line 91 of file CPDate.j.

- (id) initWithTimeIntervalSince1970: (CPTimeInterval)  seconds
implementation

Definition at line 79 of file CPDate.j.

- (id) initWithTimeIntervalSinceNow: (CPTimeInterval)  seconds
implementation

Definition at line 73 of file CPDate.j.

- (id) initWithTimeIntervalSinceReferenceDate: (CPTimeInterval)  seconds
implementation

Definition at line 85 of file CPDate.j.

- (BOOL) isEqual: (CPDate aDate
implementation

Definition at line 147 of file CPDate.j.

- (BOOL) isEqualToDate: (CPDate aDate
implementation

Definition at line 158 of file CPDate.j.

- (CPDate) laterDate: (CPDate anotherDate
implementation

Definition at line 176 of file CPDate.j.

- (CPTimeInterval) timeIntervalSince1970
implementation

Definition at line 132 of file CPDate.j.

- (CPTimeInterval) timeIntervalSinceDate: (CPDate anotherDate
implementation

Definition at line 122 of file CPDate.j.

- (CPTimeInterval) timeIntervalSinceNow
implementation

Definition at line 127 of file CPDate.j.

- (CPTimeInterval) timeIntervalSinceReferenceDate
implementation

Definition at line 137 of file CPDate.j.

+ (CPString) timezoneOffsetString: (int)  timezoneOffset
implementation

Returns timezone offset as a string in ±HHMM format

Definition at line 184 of file CPDate.j.


The documentation for this class was generated from the following files: