API  0.9.6
 All Classes Files Functions Variables Macros Modules 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 
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context: 
 
(void) - applyChange:toKeyPath: 
 
(id) - autorelease 
 
(id) - awakeAfterUsingCoder: 
 
(void) - awakeFromCib 
 
(void) - bind:toObject:withKeyPath:options: 
 
(Class) - classForCoder 
 
(Class) - classForKeyedArchiver 
 
(CPString) - className 
 
(void) - dealloc 
 
(CPDictionary) - dictionaryWithValuesForKeys: 
 
(void) - didChange:valuesAtIndexes:forKey: 
 
(void) - didChangeValueForKey: 
 
(void) - didChangeValueForKey:withSetMutation:usingObjects: 
 
(void) - doesNotRecognizeSelector: 
 
(CPArray) - exposedBindings 
 
(id) - forwardingTargetForSelector: 
 
(void) - forwardInvocation: 
 
(unsigned) - hash 
 
(BOOL) - implementsSelector: 
 
(CPDictionary) - infoForBinding: 
 
(id) - init 
 
(BOOL) - isEqual: 
 
(BOOL) - isKindOfClass: 
 
(BOOL) - isMemberOfClass: 
 
(BOOL) - isProxy 
 
(IMP) - methodForSelector: 
 
(CPMethodSignature) - methodSignatureForSelector: 
 
(id) - mutableArrayValueForKey: 
 
(id) - mutableArrayValueForKeyPath: 
 
(id) - mutableCopy 
 
(id) - mutableSetValueForKey: 
 
(id) - mutableSetValueForKeyPath: 
 
(id) - performSelector: 
 
(id) - performSelector:withObject: 
 
(id) - performSelector:withObject:withObject: 
 
(id) - performSelector:withObjects: 
 
(void) - release 
 
(void) - removeObserver:forKeyPath: 
 
(id) - replacementObjectForArchiver: 
 
(id) - replacementObjectForCoder: 
 
(id) - replacementObjectForKeyedArchiver: 
 
(BOOL) - respondsToSelector: 
 
(id) - retain 
 
(id) - self 
 
(void) - setValue:forKey: 
 
(void) - setValue:forKeyPath: 
 
(void) - setValue:forUndefinedKey: 
 
(void) - setValuesForKeysWithDictionary: 
 
(CPString) - UID 
 
(void) - unbind: 
 
(Class) - valueClassForBinding: 
 
(id) - valueForKey: 
 
(id) - valueForKeyPath: 
 
(id) - valueForUndefinedKey: 
 
(void) - willChange:valuesAtIndexes:forKey: 
 
(void) - willChangeValueForKey: 
 
(void) - willChangeValueForKey:withSetMutation:usingObjects: 
 

Class Methods

(id) + alloc 
 
(id) + date 
 
(id) + dateWithTimeIntervalSince1970: 
 
(id) + dateWithTimeIntervalSinceNow: 
 
(id) + dateWithTimeIntervalSinceReferenceDate: 
 
(id) + distantFuture 
 
(id) + distantPast 
 
(CPString) + timezoneOffsetString: 
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly 
 
(id) + allocWithCoder: 
 
(BOOL) + automaticallyNotifiesObserversForKey: 
 
(Class) + class 
 
(void) + exposeBinding: 
 
(void) + initialize 
 
(IMP) + instanceMethodForSelector: 
 
(BOOL) + instancesRespondToSelector: 
 
(BOOL) + isSubclassOfClass: 
 
(CPSet) + keyPathsForValuesAffectingValueForKey: 
 
(void) + load 
 
(id) + new 
 
(void) + setVersion: 
 
(Class) + superclass 
 
(int) + version 
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

A representation of a single point in time.

Definition at line 2 of file CPDate.h.

Method Documentation

+ (id) alloc
implementation

Allocates a new instance of the receiving class

Reimplemented from CPObject.

Definition at line 36 of file CPDate.j.

- (CPComparisonResult) compare: (CPDate)  anotherDate
implementation

Definition at line 166 of file CPDate.j.

- (id) copy
implementation

Makes a deep copy of the receiver. The copy should be functionally equivalent to the receiver.

Returns
the copy of the receiver

Reimplemented from CPObject.

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.

Reimplemented from CPObject.

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: