CPTimeZone is a class to define the behvior of time zone object (like CPDatePicker)
More...
#import <CPTimeZone.h>
CPTimeZone is a class to define the behvior of time zone object (like CPDatePicker)
Definition at line 2 of file CPTimeZone.h.
Return the abbreviationDictionary
Definition at line 443 of file CPTimeZone.j.
Returns the abbreviation from a date Returns nil if the date is nil
- Returns
- the abbreviation
Definition at line 552 of file CPTimeZone.j.
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
Definition at line 604 of file CPTimeZone.j.
Initialize the default value of the class
Definition at line 56 of file CPTimeZone.j.
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
-
- Returns
- a new instance of CPTimeZone
Definition at line 497 of file CPTimeZone.j.
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
-
tzName | the timeZone name |
data | the data |
- Returns
- a new instance of CPTimeZone
Definition at line 534 of file CPTimeZone.j.
- (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.
+ (CPArray) knownTimeZoneNames |
|
|
|
|
implementation |
- (CPString) localizedName: |
|
(NSTimeZoneNameStyle) |
style |
locale: |
|
(CPLocale) |
locale |
|
|
| |
|
implementation |
Return a localized string from the given style and locale
- Parameters
-
style | the style |
locale | the locale |
- Returns
- a string
Definition at line 618 of file CPTimeZone.j.
+ (void) resetSystemTimeZone |
|
|
|
|
implementation |
Reset the systemTimeZone This will send the notification CPSystemTimeZoneDidChangeNotification
Definition at line 424 of file CPTimeZone.j.
- (CPInteger) secondFromGMT |
|
|
|
|
implementation |
- (CPInteger) secondsFromGMT |
|
|
|
|
implementation |
Returns the number of seconds from GMT
- Returns
- the number of seconds
Definition at line 578 of file CPTimeZone.j.
- (CPInteger) secondsFromGMTForDate: |
|
(CPDate) |
date |
|
|
implementation |
Returns the number of seconds from GMT for the given date Returns nil if the date is nil
- Parameters
-
- Returns
- the number of seconds
Definition at line 565 of file CPTimeZone.j.
Set the abbreviationDictionary
- Parameters
-
Definition at line 451 of file CPTimeZone.j.
+ (void) setDefaultTimeZone: |
|
(CPTimeZone) |
aTimeZone |
|
|
implementation |
Set the defaultTimeZone
- Parameters
-
aTimeZone | the defaultTimeZone |
Definition at line 416 of file CPTimeZone.j.
Return the timeZoneDataVersion (not yet implemented)
Definition at line 393 of file CPTimeZone.j.
+ (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
-
seconds | the number of seconds |
- Returns
- a new instance of CPTimeZone
Definition at line 327 of file CPTimeZone.j.
+ (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
-
abbreviation | the given abreviation |
- Returns
- a new instance of CPTimeZone
Definition at line 291 of file CPTimeZone.j.
+ (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
-
- Returns
- a new instance of CPTimeZone
Definition at line 305 of file CPTimeZone.j.
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
-
tzName | the timeZone name |
data | the 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: