home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!murphy!jpradley!jpr
- From: jpr@jpradley.jpr.com (Jean-Pierre Radley)
- Subject: Re: Tomorrow's date? (Utility?)
- Organization: Unix in NYC
- Distribution: comp.unix.shell
- Date: Thu, 19 Nov 1992 05:33:05 GMT
- Message-ID: <1992Nov19.053305.14111@jpradley.jpr.com>
- Keywords: date utility
- References: <1992Nov16.231545.10656@cheshire.oxy.edu>
- Lines: 16
-
- In article <1992Nov16.231545.10656@cheshire.oxy.edu> legend@cheshire.oxy.edu (Linda A. Malcor) writes:
- >I'm looking for a (standard) unix utility that can tell me what tommorow's
- >date is (as well as the date 15hrs in the future/past, etc.). Any ideas?
- >Date math is so common, I'd just like to avoid reinventing the wheel.
-
- You can fake this by offsetting the TZ variable( -24 hours for one more day
- east of UTC ).
-
- $ echo $TZ
- EST5EDT
- $ date
- Thu Nov 19 00:29:18 EST 1992
- $ TZ=EST-29EDT date
- Fri Nov 20 00:30:37 EST 1992
- --
- Jean-Pierre Radley Unix in NYC jpr@jpr.com jpradley!jpr CIS: 72160.1341
-