This class represents a time zone—objects that store
information about a geographic time zone, such as the name,
abbreviation, time from GMT, whether or not daylight savings is in
effect, and so on.
@interface NSTimeZone : NSObject <NSCoding, NSCopying>
|
// Initializers |
- (id)initWithName:(NSString *)tzName;
|
- (id)initWithName:(NSString *)tzName data:(NSData *)aData;
|
// Class Methods |
+ (NSDictionary *)abbreviationDictionary;
|
+ (NSTimeZone *)defaultTimeZone;
|
+ (NSArray *)knownTimeZoneNames;
|
+ (NSTimeZone *)localTimeZone;
|
+ (void)resetSystemTimeZone;
|
+ (void)setDefaultTimeZone:(NSTimeZone *)aTimeZone;
|
+ (NSTimeZone *)systemTimeZone;
|
+ (id)timeZoneForSecondsFromGMT:(int)seconds;
|
+ (id)timeZoneWithAbbreviation:(NSString *)abbreviation;
|
+ (id)timeZoneWithName:(NSString *)tzName;
|
+ (id)timeZoneWithName:(NSString *)tzName data:(NSData *)aData;
|
// Instance Methods |
- (NSString *)abbreviation;
|
- (NSString *)abbreviationForDate:(NSDate *)aDate;
|
- (NSData *)data;
|
- (NSString *)description;
|
- (BOOL)isDaylightSavingTime;
|
- (BOOL)isDaylightSavingTimeForDate:(NSDate *)aDate;
|
- (BOOL)isEqualToTimeZone:(NSTimeZone *)aTimeZone;
|
- (NSString *)name;
|
- (int)secondsFromGMT;
|
- (int)secondsFromGMTForDate:(NSDate *)aDate;
|
// Methods Implementing NSCoding |
- (void)encodeWithCoder:(NSCoder *)aCoder;
|
- (id)initWithCoder:(NSCoder *)aDecoder;
|
// Methods Implementing NSCopying |
- (id)copyWithZone:(NSZone *)zone;
|