home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!don
- From: don@doug.med.utah.edu (Don Baune 581-6088 MIRL)
- Subject: MDT error converting to Zulu
- Message-ID: <1992Aug31.161623.6205@fcom.cc.utah.edu>
- Originator: don@doug
- Sender: news@fcom.cc.utah.edu
- Organization: University of Utah, Dept. of Radiology
- Date: Mon, 31 Aug 92 16:16:23 GMT
- Lines: 16
-
- To identify the current file, I use the "date -u" command to provide
- date and time in Greenwitch mean time (Zulu). However, all of our systems
- are set to Mountain Daylight Time (MDT) which estimates Zulu time one-
- hour ahead. Therefore, the script file attempts to download a file that
- will exist during the next hour (but of course does not exist now).
-
- Is there a way to calculate the preceding hour without changing all
- my systems to MST. The field that I am having trouble with is the
- %H. In the example below, I am looking for the file "CI%m%d%H.GIF where
- %m is the current month (08), %d is the current day (28), and %H is the
- current time in Zulu (18). I need to reduce 18 to 17. Any Ideas would
- be helpful.
-
- don
- don@doug.med.utah.edu
-
-