home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25395 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.6 KB

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