DekGenius.com
[ Team LiB ] Previous Section Next Section

NSTimeZone Mac OS X 10.0

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.

NSTimeZone is toll-free bridged with the Core Foundation type CFTimeZone. As such, NSTimeZone objects can be used interchangeably with the CFTimeZone pointer type, CFTimeZoneRef.

figs/cocn_13111.gif

@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;

    [ Team LiB ] Previous Section Next Section