Path: utzoo!utgpu!attcan!uunet!unh!pss From: pss@unh.UUCP (Paul S. Sawyer) Newsgroups: comp.unix.questions Subject: Re: "yesterdate" function? Summary: Don't forget EST, CST, etc. Message-ID: <865@unh.UUCP> Date: 6 Jan 89 21:22:29 GMT References: <19100001@hpficad.HP.COM> <3562@emory.uucp> <1033@jpusa1.UUCP> Organization: UNH Telecommunications Lines: 21 In article <1033@jpusa1.UUCP>, stu@jpusa1.UUCP (Stu Heiss) writes: > > add 24 to your tz offset (example 6 for cdt; 6+24=30) and do > $ TZ=30 date +%y%m%d > Stu Heiss {gargoyle.uchicago.edu,uunet.uu.net,spl1,ddsw1}!jpusa1.uucp!stu On SysV.2, anyway, you need: $ TZ=CST30 date +%y%m%d or $ TZ=CST30CDT date +%y%m%d # covering daylight savings periods (Which is probably what you meant anyway B-) Is there ANY (reasonable) function that CAN'T be (reasonably) implemented in /bin/sh (programming) "without writing a [insert language here] program"? -- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Paul S. Sawyer uunet!unh!unhtel!paul paul@unhtel.UUCP UNH Telecommunications Durham, NH 03824-3523 VOX: 603-862-3262 FAX: 603-862-2030