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

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!mercury.hsi.com!mlfarm!rosie!ron
  3. From: ron@mlfarm.com (Ronald Florence)
  4. Subject: Re: MDT error converting to Zulu
  5. In-Reply-To: don@doug.med.utah.edu's message of Mon, 31 Aug 92 16:16:23 GMT
  6. Message-ID: <1992Aug31.202946.19568@mlfarm.com>
  7. Sender: news@rosie.mlfarm.com
  8. Organization: Maple Lawn Farm, Stonington, CT
  9. References: <1992Aug31.161623.6205@fcom.cc.utah.edu>
  10. Date: Mon, 31 Aug 1992 20:29:46 GMT
  11. Lines: 17
  12.  
  13. Don Baune 581-6088 MIRL writes:
  14.  
  15.    Is there a way to calculate the preceding hour without changing all
  16.    my systems to MST.  The field that I am having trouble with is the 
  17.    %H. In the example below, I am looking for the file "CI%m%d%H.GIF where 
  18.    %m is the current month (08), %d is the current day (28), and %H is the 
  19.    current time in Zulu (18).  I need to reduce 18 to 17.  Any Ideas would 
  20.    be helpful.
  21.  
  22. #! /bin/sh
  23.  
  24. filename=CI`TZ=GMT-1 date '+%m%d%H'`.GIF
  25.  
  26. -- 
  27.  
  28.                 Ronald Florence
  29.                 ron@mlfarm.com
  30.