home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!igor.rutgers.edu!geneva.rutgers.edu!hedrick
- From: hedrick@geneva.rutgers.edu (Charles Hedrick)
- Newsgroups: comp.os.linux
- Subject: Re: NON-FAQ - date: CST instead of GMT?
- Message-ID: <Jan.24.22.52.51.1993.3078@geneva.rutgers.edu>
- Date: 25 Jan 93 03:52:52 GMT
- References: <1993Jan23.060826.16026@wuecl.wustl.edu>
- Organization: Rutgers Univ., New Brunswick, N.J.
- Lines: 21
-
- ask1@cec2.wustl.edu (Andrew Scott Koransky) writes:
-
- >I am having problems with date returning my time in CST vs GMT. For
- >example, if the correct time is 23:00 CST: I would try typing:
- >date -s "23:00 CST" and then date outputs: Sun Jan 24 05:00:00 GMT 1993, the
- >time correctly specified as GMT, but I can't get date to output "23:00
- >CST". Is there a way to do this, or do I just have to live with seeing
- >either the time in GMT or the local time specified as GMT?
-
- You have to set up /usr/lib/zoneinfo/localtime or both
- /usr/lib/zoneinfo/posixrules and the environment variable TZ.
- (localtime defines a default zone. posixrules sets up the necessary
- information to interpret the TZ variable.) The necessary files, as
- well as time.doc, should be in Hlu's base distribution and other
- distributions. An old version is on athos.rutgers.edu in
- pub/linux/timebin... (From this distribution you should take only the
- zoneinfo files and documentation -- you don't need date, since the
- current copies of date have the right code.) If you have a Sun
- (previous to Solaris 2.0) or other BSD-based system, you should be
- able to copy localtime and/or posixrules from it. On Suns it seems to
- be /usr/share/lib/zoneinfo.
-