home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!mercury.hsi.com!mlfarm!rosie!ron
- From: ron@mlfarm.com (Ronald Florence)
- Subject: Re: MDT error converting to Zulu
- In-Reply-To: don@doug.med.utah.edu's message of Mon, 31 Aug 92 16:16:23 GMT
- Message-ID: <1992Aug31.202946.19568@mlfarm.com>
- Sender: news@rosie.mlfarm.com
- Organization: Maple Lawn Farm, Stonington, CT
- References: <1992Aug31.161623.6205@fcom.cc.utah.edu>
- Date: Mon, 31 Aug 1992 20:29:46 GMT
- Lines: 17
-
- Don Baune 581-6088 MIRL writes:
-
- 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.
-
- #! /bin/sh
-
- filename=CI`TZ=GMT-1 date '+%m%d%H'`.GIF
-
- --
-
- Ronald Florence
- ron@mlfarm.com
-