API  1.0.0
CPTimeZone Class Reference

CPTimeZone is a class to define the behvior of time zone object (like CPDatePicker) More...

#import <CPTimeZone.h>

+ Inheritance diagram for CPTimeZone:

Instance Methods

(CPString- abbreviation
 
(CPString- abbreviationForDate:
 
(CPData- data
 
(CPString- description
 
(id) - initWithName:
 
(id) - initWithName:data:
 
(BOOL) - isEqualToTimeZone:
 
(CPString- localizedName:locale:
 
(CPString- name
 
(CPInteger) - secondFromGMT
 
(CPInteger) - secondsFromGMT
 
(CPInteger) - secondsFromGMTForDate:
 
- 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
 
(id) - copy
 
(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

(CPDictionary+ abbreviationDictionary
 
(CPTimeZone+ defaultTimeZone
 
(void) + initialize
 
(CPArray) + knownTimeZoneNames
 
(CPTimeZone+ localTimeZone
 
(void) + resetSystemTimeZone
 
(void) + setAbbreviationDictionary:
 
(void) + setDefaultTimeZone:
 
(CPTimeZone+ systemTimeZone
 
(CPString+ timeZoneDataVersion
 
(id) + timeZoneForSecondsFromGMT:
 
(id) + timeZoneWithAbbreviation:
 
(id) + timeZoneWithName:
 
(id) + timeZoneWithName:data:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(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

CPTimeZone is a class to define the behvior of time zone object (like CPDatePicker)

Definition at line 2 of file CPTimeZone.h.

Method Documentation

◆ abbreviation()

- (CPString) abbreviation
implementation

Synthesized accessor method.

Provided by category CPTimeZone(CPSynthesizedAccessors).

Definition at line 649 of file CPTimeZone.j.

◆ abbreviationDictionary()

+ (CPDictionary) abbreviationDictionary
implementation

Return the abbreviationDictionary

Definition at line 443 of file CPTimeZone.j.

◆ abbreviationForDate:()

- (CPString) abbreviationForDate: (CPDate date
implementation

Returns the abbreviation from a date Returns nil if the date is nil

Returns
the abbreviation

Definition at line 552 of file CPTimeZone.j.

◆ data()

- (CPData) data
implementation

Synthesized accessor method.

Provided by category CPTimeZone(CPSynthesizedAccessors).

Definition at line 633 of file CPTimeZone.j.

◆ defaultTimeZone()

+ (CPTimeZone) defaultTimeZone
implementation

Return the defaultTimeZone

Definition at line 408 of file CPTimeZone.j.

◆ description()

- (CPString) description
implementation

Returns the description of the timeZone The pattern of the description is : 'name of the timeZone' ('abbreviation of the timeZone') offset 'the timeDifferenceFromGMT'

Returns
the description

Reimplemented from CPObject.

Definition at line 604 of file CPTimeZone.j.

◆ initialize()

+ (void) initialize
implementation

Initialize the default value of the class

Reimplemented from CPObject.

Definition at line 56 of file CPTimeZone.j.

◆ initWithName:()

- (id) initWithName: (CPString tzName
implementation

Init a new time zone from the given timeZone name Returns nil if the given timeZone name doesn't match with any abbreviations Raises an exception if tzName is nil

Parameters
tzNamethe timeZone name
Returns
a new instance of CPTimeZone

Definition at line 497 of file CPTimeZone.j.

◆ initWithName:data:()

- (id) initWithName: (CPString tzName
data: (CPData data 
implementation

Return a time zone from the given timeZone name and data Returns nil if the given timeZone name doesn't match with any abbreviations Raises an exception if tzName is nil

Parameters
tzNamethe timeZone name
datathe data
Returns
a new instance of CPTimeZone

Definition at line 534 of file CPTimeZone.j.

◆ isEqualToTimeZone:()

- (BOOL) isEqualToTimeZone: (CPTimeZone aTimeZone
implementation

Returns a bool to compare tow timeZones. This is made by the compare of the name and the data of the timeZones

Returns
a bool

Definition at line 591 of file CPTimeZone.j.

◆ knownTimeZoneNames()

+ (CPArray) knownTimeZoneNames
implementation

Return the knownTimeZoneNames

Definition at line 458 of file CPTimeZone.j.

◆ localizedName:locale:()

- (CPString) localizedName: (NSTimeZoneNameStyle)  style
locale: (CPLocale locale 
implementation

Return a localized string from the given style and locale

Parameters
stylethe style
localethe locale
Returns
a string

Definition at line 618 of file CPTimeZone.j.

◆ localTimeZone()

+ (CPTimeZone) localTimeZone
implementation

Return the localTimeZone

Definition at line 401 of file CPTimeZone.j.

◆ name()

- (CPString) name
implementation

Synthesized accessor method.

Provided by category CPTimeZone(CPSynthesizedAccessors).

Definition at line 657 of file CPTimeZone.j.

◆ resetSystemTimeZone()

+ (void) resetSystemTimeZone
implementation

Reset the systemTimeZone This will send the notification CPSystemTimeZoneDidChangeNotification

Definition at line 424 of file CPTimeZone.j.

◆ secondFromGMT()

- (CPInteger) secondFromGMT
implementation

Synthesized accessor method.

Provided by category CPTimeZone(CPSynthesizedAccessors).

Definition at line 641 of file CPTimeZone.j.

◆ secondsFromGMT()

- (CPInteger) secondsFromGMT
implementation

Returns the number of seconds from GMT

Returns
the number of seconds

Definition at line 578 of file CPTimeZone.j.

◆ secondsFromGMTForDate:()

- (CPInteger) secondsFromGMTForDate: (CPDate date
implementation

Returns the number of seconds from GMT for the given date Returns nil if the date is nil

Parameters
date
Returns
the number of seconds

Definition at line 565 of file CPTimeZone.j.

◆ setAbbreviationDictionary:()

+ (void) setAbbreviationDictionary: (CPDictionary dict
implementation

Set the abbreviationDictionary

Parameters
dict

Definition at line 451 of file CPTimeZone.j.

◆ setDefaultTimeZone:()

+ (void) setDefaultTimeZone: (CPTimeZone aTimeZone
implementation

Set the defaultTimeZone

Parameters
aTimeZonethe defaultTimeZone

Definition at line 416 of file CPTimeZone.j.

◆ systemTimeZone()

+ (CPTimeZone) systemTimeZone
implementation

Return the systemTimeZone

Definition at line 436 of file CPTimeZone.j.

◆ timeZoneDataVersion()

+ (CPString) timeZoneDataVersion
implementation

Return the timeZoneDataVersion (not yet implemented)

Definition at line 393 of file CPTimeZone.j.

◆ timeZoneForSecondsFromGMT:()

+ (id) timeZoneForSecondsFromGMT: (CPInteger)  seconds
implementation

Return a time zone from the given seconds Returns nil if the number of seconds doesn't match with any offset

Parameters
secondsthe number of seconds
Returns
a new instance of CPTimeZone

Definition at line 327 of file CPTimeZone.j.

◆ timeZoneWithAbbreviation:()

+ (id) timeZoneWithAbbreviation: (CPString abbreviation
implementation

Returns a time zone from the given abbreviation. Returns nil if the given abbreviation doesn't match with any abbreviations

Parameters
abbreviationthe given abreviation
Returns
a new instance of CPTimeZone

Definition at line 291 of file CPTimeZone.j.

◆ timeZoneWithName:()

+ (id) timeZoneWithName: (CPString tzName
implementation

Return a time zone from the given timeZone name Returns nil if the given timeZone name doesn't match with any abbreviations Raises an exception if tzName is nil

Parameters
tzNamethe timeZone name
Returns
a new instance of CPTimeZone

Definition at line 305 of file CPTimeZone.j.

◆ timeZoneWithName:data:()

+ (id) timeZoneWithName: (CPString tzName
data: (CPData data 
implementation

Return a time zone from the given timeZone name and data Returns nil if the given timeZone name doesn't match with any abbreviations Raises an exception if tzName is nil

Parameters
tzNamethe timeZone name
datathe data
Returns
a new instance of CPTimeZone

Definition at line 317 of file CPTimeZone.j.


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