API  0.9.10
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
 
(id) - dateByAddingTimeInterval:
 
(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:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(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:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

A representation of a single point in time.

Definition at line 2 of file CPDate.h.

Method Documentation

◆ alloc()

+ (id) alloc
implementation

Allocates a new instance of the receiving class

Reimplemented from CPObject.

Definition at line 35 of file CPDate.j.

◆ compare:()

- (CPComparisonResult) compare: (CPDate anotherDate
implementation

Definition at line 186 of file CPDate.j.

◆ copy()

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

◆ date()

+ (id) date
implementation

Definition at line 42 of file CPDate.j.

◆ dateByAddingTimeInterval:()

- (id) dateByAddingTimeInterval: (CPTimeInterval)  seconds
implementation

Return a new date representing the receiver's time plus the given interval into the future, or into the past for a negative interval.

Definition at line 162 of file CPDate.j.

◆ dateWithTimeIntervalSince1970:()

+ (id) dateWithTimeIntervalSince1970: (CPTimeInterval)  seconds
implementation

Definition at line 52 of file CPDate.j.

◆ dateWithTimeIntervalSinceNow:()

+ (id) dateWithTimeIntervalSinceNow: (CPTimeInterval)  seconds
implementation

Definition at line 47 of file CPDate.j.

◆ dateWithTimeIntervalSinceReferenceDate:()

+ (id) dateWithTimeIntervalSinceReferenceDate: (CPTimeInterval)  seconds
implementation

Definition at line 57 of file CPDate.j.

◆ description()

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

◆ distantFuture()

+ (id) distantFuture
implementation

Definition at line 67 of file CPDate.j.

◆ distantPast()

+ (id) distantPast
implementation

Definition at line 62 of file CPDate.j.

◆ earlierDate:()

- (CPDate) earlierDate: (CPDate anotherDate
implementation

Definition at line 191 of file CPDate.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPDate(CPCoding).

Definition at line 243 of file CPDate.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPDate(CPCoding).

Definition at line 233 of file CPDate.j.

◆ initWithString:()

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

◆ initWithTimeInterval:sinceDate:()

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

Definition at line 99 of file CPDate.j.

◆ initWithTimeIntervalSince1970:()

- (id) initWithTimeIntervalSince1970: (CPTimeInterval)  seconds
implementation

Definition at line 81 of file CPDate.j.

◆ initWithTimeIntervalSinceNow:()

- (id) initWithTimeIntervalSinceNow: (CPTimeInterval)  seconds
implementation

Definition at line 72 of file CPDate.j.

◆ initWithTimeIntervalSinceReferenceDate:()

- (id) initWithTimeIntervalSinceReferenceDate: (CPTimeInterval)  seconds
implementation

Definition at line 90 of file CPDate.j.

◆ isEqual:()

- (BOOL) isEqual: (CPDate aDate
implementation

Definition at line 167 of file CPDate.j.

◆ isEqualToDate:()

- (BOOL) isEqualToDate: (CPDate aDate
implementation

Definition at line 178 of file CPDate.j.

◆ laterDate:()

- (CPDate) laterDate: (CPDate anotherDate
implementation

Definition at line 196 of file CPDate.j.

◆ timeIntervalSince1970()

- (CPTimeInterval) timeIntervalSince1970
implementation

Definition at line 143 of file CPDate.j.

◆ timeIntervalSinceDate:()

- (CPTimeInterval) timeIntervalSinceDate: (CPDate anotherDate
implementation

Definition at line 133 of file CPDate.j.

◆ timeIntervalSinceNow()

- (CPTimeInterval) timeIntervalSinceNow
implementation

Definition at line 138 of file CPDate.j.

◆ timeIntervalSinceReferenceDate()

- (CPTimeInterval) timeIntervalSinceReferenceDate
implementation

Definition at line 148 of file CPDate.j.

◆ timezoneOffsetString:()

+ (CPString) timezoneOffsetString: (int)  timezoneOffset
implementation

Returns timezone offset as a string in ±HHMM format

Definition at line 204 of file CPDate.j.


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