home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: How to Change the TimeZone in a Sparc
- Message-ID: <15608@auspex-gw.auspex.com>
- Date: 23 Nov 92 05:45:07 GMT
- References: <1992Nov21.233351.1@ttd.teradyne.com> <1992Nov22.230001.1490@ukw.uucp>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 44
- Nntp-Posting-Host: auspex-gw.auspex.com
- Nntp-Posting-Host: bootme.auspex.com
- Originator: guy@auspex-gw.Auspex.COM
-
- >If you repeat the procedure of looking for the inode number, you will
- >find US/Eastern linked with EST5EDT, Jamaica, and posixrules.
- >Why posixrules? I can't guess. Maybe POSIX is only valid on the
- >east coast?
-
- No, it's because:
-
- 1) POSIX 1003.1 doesn't say what standard/summer time rules are
- to be followed if the setting of the TZ environment variable
- doesn't explicitly specify them (i.e., if it's set to
- something like "EST5EDT" or "PST8PDT", rather than set to one
- of those grotesque strings that POSIX specifies as the way
- you put the rules explicitly into TZ);
-
- 2) it's kind of silly to just have it pick hard-wired US rules
- as of when the code was written - hard-code rules of that
- sort got in the way when the US changed the rules, which is
- why the Arthur Olson code was cooked up in the first place;
-
- 3) thus, it was decided by the Timezone Cabal that the rules it
- uses when:
-
- 1) the TZ string doesn't begin with a colon (if it
- begins with a colon, POSIX 1003.1 says its meaning is
- implementation-dependent, and the Olson code says
- that when you strip the colon off, it's the name of
- the file to use) and isn't the name of a file (the
- Olson code, at least in the incarnation in SunOS 4.x,
- will treat it as the name of a file if there is a
- time zone file with that name in
- "/usr/share/lib/zoneinfo", even if it has the syntax
- of a valid POSIX time zone);
-
- 2) no rules were specified in TZ;
-
- should be extracted from the "posixrules" file, with the actual
- standard-time and summer-time offsets from GMT extracted from
- TZ;
-
- 4) and it was also decided that, at least in SunOS, the default
- setting of "posixrules" would be the US rules, and it was
- fairly arbitrarily decided that the specific file used would
- be the "US/Eastern" file (any file with the same rules, such
- as "US/Pacific", should do as well).
-