home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!usc!rpi!batcomputer!theory.TC.Cornell.EDU!cloos
- From: cloos@theory.TC.Cornell.EDU (James H. Cloos Jr.)
- Subject: Re: NON-FAQ - date: CST instead of GMT?
- In-Reply-To: vera@fanaraaken.Stanford.EDU's message of 24 Jan 93 01:24:47 GMT
- Message-ID: <1993Jan24.065939.6639@tc.cornell.edu>
- Sender: news@tc.cornell.edu
- Nntp-Posting-Host: theory.tc.cornell.edu
- Organization: Cornell Theory Center
- References: <1993Jan23.060826.16026@wuecl.wustl.edu>
- <vera.727838687@fanaraaken.Stanford.EDU>
- Distribution: na
- Date: Sun, 24 Jan 1993 06:59:39 GMT
- Lines: 36
-
- ASK> This question was asked recently, but was left
- ASK> unanswered/misunderstood:
-
- ASK> I am having problems with date returning my time in CST vs GMT.
- ASK> For example, if the correct time is 23:00 CST: I would try
- ASK> typing: date -s "23:00 CST" and then date outputs: Sun Jan 24
- ASK> 05:00:00 GMT 1993, the time correctly specified as GMT, but I
- ASK> can't get date to output "23:00 CST". Is there a way to do this,
- ASK> or do I just have to live with seeing either the time in GMT or
- ASK> the local time specified as GMT?
-
- JSV> I fixed this by creating a link from /usr/lib/zoneinfo/localtime
- JSV> to the appropriate timezone file (in my case
- JSV> /usr/lib/zoneinfo/US/Pacific)
-
- Additionally, if for any reasone you do not want to do that/cannot do
- that, setting the TZ environmental variable will also do the trick.
-
- If TZ=CST6CDT, for instance, you would be at GMT-6, except during US
- daylight time, when you would be at GMT-5. Linking
- /usr/lib/zoneinfo/localtime to /usr/lib/zoneinfo/US/Central will do
- the same thing. I recomend using a symbolic link, though, so that the
- setting is obvious. It is often good to also link posixrules to
- localtime w/in /usr/lib/zoneinfo, so that any POSIX compliant software
- that needs to know the local timezone will work.
-
- P.S. What is the difference between US/Pacific and US/Pacific-new?
- Is it a difference in the daylight savings period?
-
- -JimC
- --
- James H. Cloos, Jr. include <std/qotd>
- Cloos@TC.Cornell.EDU include <std/disclaimers.h>
- Cloos@Batcomputer.UUCP Snail: POBox 1111, Amherst, NY 14226-1111
- Cloos@CrnlThry.BITNET Phone: +1 716 673-1250 (voice only, for now)
-
-