home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5977 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.1 KB  |  28 lines

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