2
<title>NSTimeZone</title>
5
<a href ="NSThread.html">[Previous] </a>
6
<a href ="Base.html">[Up] </a>
7
<a href ="NSTimer.html">[Next] </a>
11
<dt><a href ="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
14
<p>Version: $Revision: 1.14 $</p>
15
<p>Date: $Date: 2001/12/12 14:10:13 $</p>
16
<h2><a name ="cont-0">NSTimeZone</a></h2>
17
<h2><a name ="NSTimeZone">NSTimeZone</a></h2>
18
<p><b>Declared in: </b> Foundation/NSTimeZone.h</p>
19
<p><b>Inherits from: </b> NSObject</p>
20
<p><b>Conforms to: </b> NSCoding
26
If the GNUstep time zone datafiles become too out of date, one
27
can download an updated database from <a href ="ftp://elsie.nci.nih.gov/pub/">ftp://elsie.nci.nih.gov/pub/</a>
28
and compile it as specified in the README file in the
29
NSTimeZones directory.
31
Time zone names in NSDates should be GMT, MET etc. not
32
Europe/Berlin, America/Washington etc.
34
The problem with this is that various time zones may use the
35
same abbreviation (e.g. Australia/Brisbane and
36
America/New_York both use EST), and some time zones
37
may have different rules for daylight saving time even if the
38
abbreviation and offsets from UTC are the same.
40
The problems with depending on the OS for providing time zone
41
info are that some methods for the NSTimeZone classes might be
42
difficult to implement, and also that time zone names may vary
43
wildly between OSes (this could be a big problem when
44
archiving is used between different systems).
48
<h2>Instance Variables </h2>
53
<li ><a href ="NSTimeZone.html#method-0">+abbreviationDictionary</a>
54
<li ><a href ="NSTimeZone.html#method-1">+defaultTimeZone</a>
55
<li ><a href ="NSTimeZone.html#method-3">+knownTimeZoneNames</a>
56
<li ><a href ="NSTimeZone.html#method-2">+localTimeZone</a>
57
<li ><a href ="NSTimeZone.html#method-4">+resetSystemTimeZone</a>
58
<li ><a href ="NSTimeZone.html#method-5">+setDefaultTimeZone:</a>
59
<li ><a href ="NSTimeZone.html#method-6">+systemTimeZone</a>
60
<li ><a href ="NSTimeZone.html#method-7">+timeZoneForSecondsFromGMT:</a>
61
<li ><a href ="NSTimeZone.html#method-8">+timeZoneWithAbbreviation:</a>
62
<li ><a href ="NSTimeZone.html#method-9">+timeZoneWithName:</a>
63
<li ><a href ="NSTimeZone.html#method-10">+timeZoneWithName:</a>
64
<li ><a href ="NSTimeZone.html#method-11">-abbreviation</a>
65
<li ><a href ="NSTimeZone.html#method-12">-abbreviationForDate:</a>
66
<li ><a href ="NSTimeZone.html#method-13">-data</a>
67
<li ><a href ="NSTimeZone.html#method-14">-description</a>
68
<li ><a href ="NSTimeZone.html#method-16">-initWithName:</a>
69
<li ><a href ="NSTimeZone.html#method-15">-initWithName:</a>
70
<li ><a href ="NSTimeZone.html#method-17">-isDaylightSavingTime</a>
71
<li ><a href ="NSTimeZone.html#method-18">-isDaylightSavingTimeForDate:</a>
72
<li ><a href ="NSTimeZone.html#method-19">-isEqualToTimeZone:</a>
73
<li ><a href ="NSTimeZone.html#method-20">-name</a>
74
<li ><a href ="NSTimeZone.html#method-21">-secondsFromGMT</a>
75
<li ><a href ="NSTimeZone.html#method-22">-secondsFromGMTForDate:</a>
77
<hr><h2>Class Methods </h2>
78
<h3><a name ="method-0">abbreviationDictionary</a></h3>
79
+ (NSDictionary*) <b>abbreviationDictionary</b>;<br>
83
<h3><a name ="method-1">defaultTimeZone</a></h3>
84
+ (NSTimeZone*) <b>defaultTimeZone</b>;<br>
88
<h3><a name ="method-2">localTimeZone</a></h3>
89
+ (NSTimeZone*) <b>localTimeZone</b>;<br>
93
<h3><a name ="method-3">knownTimeZoneNames</a></h3>
94
+ (NSArray*) <b>knownTimeZoneNames</b>;<br>
98
<h3><a name ="method-4">resetSystemTimeZone</a></h3>
99
+ (void) <b>resetSystemTimeZone</b>;<br>
103
<h3><a name ="method-5">setDefaultTimeZone:</a></h3>
104
+ (void) <b>setDefaultTimeZone:</b> (NSTimeZone*)aTimeZone;<br>
108
<h3><a name ="method-6">systemTimeZone</a></h3>
109
+ (NSTimeZone*) <b>systemTimeZone</b>;<br>
113
<h3><a name ="method-7">timeZoneForSecondsFromGMT:</a></h3>
114
+ (NSTimeZone*) <b>timeZoneForSecondsFromGMT:</b> (int)seconds;<br>
118
<h3><a name ="method-8">timeZoneWithAbbreviation:</a></h3>
119
+ (NSTimeZone*) <b>timeZoneWithAbbreviation:</b> (NSString*)abbreviation;<br>
123
<h3><a name ="method-9">timeZoneWithName:</a></h3>
124
+ (NSTimeZone*) <b>timeZoneWithName:</b> (NSString*)aTimeZoneName;<br>
128
<h3><a name ="method-10">timeZoneWithName:</a></h3>
129
+ (NSTimeZone*) <b>timeZoneWithName:</b> (NSString*)aTimeZoneName;<br>
133
<hr><h2>Instances Methods </h2>
134
<h3><a name ="method-11">abbreviation</a></h3>
135
- (NSString*) <b>abbreviation</b>;<br>
139
<h3><a name ="method-12">abbreviationForDate:</a></h3>
140
- (NSString*) <b>abbreviationForDate:</b> (NSDate*)aDate;<br>
144
<h3><a name ="method-13">data</a></h3>
145
- (NSData*) <b>data</b>;<br>
149
<h3><a name ="method-14">description</a></h3>
150
- (NSString*) <b>description</b>;<br>
154
<h3><a name ="method-15">initWithName:</a></h3>
155
- (id) <b>initWithName:</b> (NSString*)aName;<br>
159
<h3><a name ="method-16">initWithName:</a></h3>
160
- (id) <b>initWithName:</b> (NSString*)aName;<br>
164
<h3><a name ="method-17">isDaylightSavingTime</a></h3>
165
- (BOOL) <b>isDaylightSavingTime</b>;<br>
169
<h3><a name ="method-18">isDaylightSavingTimeForDate:</a></h3>
170
- (BOOL) <b>isDaylightSavingTimeForDate:</b> (NSDate*)aDate;<br>
174
<h3><a name ="method-19">isEqualToTimeZone:</a></h3>
175
- (BOOL) <b>isEqualToTimeZone:</b> (NSTimeZone*)aTimeZone;<br>
179
<h3><a name ="method-20">name</a></h3>
180
- (NSString*) <b>name</b>;<br>
184
<h3><a name ="method-21">secondsFromGMT</a></h3>
185
- (int) <b>secondsFromGMT</b>;<br>
189
<h3><a name ="method-22">secondsFromGMTForDate:</a></h3>
190
- (int) <b>secondsFromGMTForDate:</b> (NSDate*)aDate;<br>