home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13621 < prev    next >
Encoding:
Text File  |  1992-11-19  |  999 b   |  29 lines

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