libs-base/Documentation/gsdoc/NSTimeZone.html
CaS 0a86bba7b0 Documentation regeneration and XML parsing fixes/updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9698 72102866-910b-0410-8b05-ffd578937521
2001-04-25 14:19:57 +00:00

196 lines
5.9 KiB
HTML

<html><head>
<title>NSTimeZone</title>
</head>
<body>
<a href ="NSThread.html">[Previous] </a>
<a href ="Base.html">[Up] </a>
<a href ="NSTimer.html">[Next] </a>
<h1>NSTimeZone</h1>
<h3>Authors </h3>
<dl>
<dt><a href ="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
<dd>
</dl>
<p>Version: $Revision$</p>
<p>Date: $Date$</p>
<h2><a name ="cont-0">NSTimeZone</a></h2>
<h2><a name ="NSTimeZone">NSTimeZone</a></h2>
<p><b>Declared in: </b> Foundation/NSTimeZone.h</p>
<p><b>Inherits from: </b> NSObject</p>
<p><b>Conforms to: </b> NSCoding
</p>
<hr>
<p>
If the GNUstep time zone datafiles become too out of date, one
can download an updated database from <a href ="ftp://elsie.nci.nih.gov/pub/">ftp://elsie.nci.nih.gov/pub/</a>
and compile it as specified in the README file in the
NSTimeZones directory.
Time zone names in NSDates should be GMT, MET etc. not
Europe/Berlin, America/Washington etc.
The problem with this is that various time zones may use the
same abbreviation (e.g. Australia/Brisbane and
America/New_York both use EST), and some time zones
may have different rules for daylight saving time even if the
abbreviation and offsets from UTC are the same.
The problems with depending on the OS for providing time zone
info are that some methods for the NSTimeZone classes might be
difficult to implement, and also that time zone names may vary
wildly between OSes (this could be a big problem when
archiving is used between different systems).
</p>
<h2>Instance Variables </h2>
<ul>
</ul>
<h2>Methods </h2>
<ul>
<li ><a href ="NSTimeZone.html#method-0">+abbreviationDictionary</a>
<li ><a href ="NSTimeZone.html#method-1">+defaultTimeZone</a>
<li ><a href ="NSTimeZone.html#method-3">+knownTimeZoneNames</a>
<li ><a href ="NSTimeZone.html#method-2">+localTimeZone</a>
<li ><a href ="NSTimeZone.html#method-4">+resetSystemTimeZone</a>
<li ><a href ="NSTimeZone.html#method-5">+setDefaultTimeZone:</a>
<li ><a href ="NSTimeZone.html#method-6">+systemTimeZone</a>
<li ><a href ="NSTimeZone.html#method-7">+timeZoneForSecondsFromGMT:</a>
<li ><a href ="NSTimeZone.html#method-8">+timeZoneWithAbbreviation:</a>
<li ><a href ="NSTimeZone.html#method-9">+timeZoneWithName:</a>
<li ><a href ="NSTimeZone.html#method-10">+timeZoneWithName:</a>
<li ><a href ="NSTimeZone.html#method-11">-abbreviation</a>
<li ><a href ="NSTimeZone.html#method-12">-abbreviationForDate:</a>
<li ><a href ="NSTimeZone.html#method-13">-data</a>
<li ><a href ="NSTimeZone.html#method-14">-description</a>
<li ><a href ="NSTimeZone.html#method-16">-initWithName:</a>
<li ><a href ="NSTimeZone.html#method-15">-initWithName:</a>
<li ><a href ="NSTimeZone.html#method-17">-isDaylightSavingTime</a>
<li ><a href ="NSTimeZone.html#method-18">-isDaylightSavingTimeForDate:</a>
<li ><a href ="NSTimeZone.html#method-19">-isEqualToTimeZone:</a>
<li ><a href ="NSTimeZone.html#method-20">-name</a>
<li ><a href ="NSTimeZone.html#method-21">-secondsFromGMT</a>
<li ><a href ="NSTimeZone.html#method-22">-secondsFromGMTForDate:</a>
</ul>
<hr><h2>Class Methods </h2>
<h3><a name ="method-0">abbreviationDictionary</a></h3>
+ (NSDictionary*) <b>abbreviationDictionary</b>;<br>
<hr>
<h3><a name ="method-1">defaultTimeZone</a></h3>
+ (NSTimeZone*) <b>defaultTimeZone</b>;<br>
<hr>
<h3><a name ="method-2">localTimeZone</a></h3>
+ (NSTimeZone*) <b>localTimeZone</b>;<br>
<hr>
<h3><a name ="method-3">knownTimeZoneNames</a></h3>
+ (NSArray*) <b>knownTimeZoneNames</b>;<br>
<hr>
<h3><a name ="method-4">resetSystemTimeZone</a></h3>
+ (void) <b>resetSystemTimeZone</b>;<br>
<hr>
<h3><a name ="method-5">setDefaultTimeZone:</a></h3>
+ (void) <b>setDefaultTimeZone:</b> (NSTimeZone*)aTimeZone;<br>
<hr>
<h3><a name ="method-6">systemTimeZone</a></h3>
+ (NSTimeZone*) <b>systemTimeZone</b>;<br>
<hr>
<h3><a name ="method-7">timeZoneForSecondsFromGMT:</a></h3>
+ (NSTimeZone*) <b>timeZoneForSecondsFromGMT:</b> (int)seconds;<br>
<hr>
<h3><a name ="method-8">timeZoneWithAbbreviation:</a></h3>
+ (NSTimeZone*) <b>timeZoneWithAbbreviation:</b> (NSString*)abbreviation;<br>
<hr>
<h3><a name ="method-9">timeZoneWithName:</a></h3>
+ (NSTimeZone*) <b>timeZoneWithName:</b> (NSString*)aTimeZoneName;<br>
<hr>
<h3><a name ="method-10">timeZoneWithName:</a></h3>
+ (NSTimeZone*) <b>timeZoneWithName:</b> (NSString*)aTimeZoneName;<br>
<hr>
<hr><h2>Instances Methods </h2>
<h3><a name ="method-11">abbreviation</a></h3>
- (NSString*) <b>abbreviation</b>;<br>
<hr>
<h3><a name ="method-12">abbreviationForDate:</a></h3>
- (NSString*) <b>abbreviationForDate:</b> (NSDate*)aDate;<br>
<hr>
<h3><a name ="method-13">data</a></h3>
- (NSData*) <b>data</b>;<br>
<hr>
<h3><a name ="method-14">description</a></h3>
- (NSString*) <b>description</b>;<br>
<hr>
<h3><a name ="method-15">initWithName:</a></h3>
- (id) <b>initWithName:</b> (NSString*)aName;<br>
<hr>
<h3><a name ="method-16">initWithName:</a></h3>
- (id) <b>initWithName:</b> (NSString*)aName;<br>
<hr>
<h3><a name ="method-17">isDaylightSavingTime</a></h3>
- (BOOL) <b>isDaylightSavingTime</b>;<br>
<hr>
<h3><a name ="method-18">isDaylightSavingTimeForDate:</a></h3>
- (BOOL) <b>isDaylightSavingTimeForDate:</b> (NSDate*)aDate;<br>
<hr>
<h3><a name ="method-19">isEqualToTimeZone:</a></h3>
- (BOOL) <b>isEqualToTimeZone:</b> (NSTimeZone*)aTimeZone;<br>
<hr>
<h3><a name ="method-20">name</a></h3>
- (NSString*) <b>name</b>;<br>
<hr>
<h3><a name ="method-21">secondsFromGMT</a></h3>
- (int) <b>secondsFromGMT</b>;<br>
<hr>
<h3><a name ="method-22">secondsFromGMTForDate:</a></h3>
- (int) <b>secondsFromGMTForDate:</b> (NSDate*)aDate;<br>
<hr>
</body>
</html>