Good point - I'll think I'll do it with perl, of get GNU Date. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Weisgerber Sent: Tuesday, 31 May 2005 11:52 AM To: misc@openbsd.org Subject: Re: Getting Yesterday's Date (Repost due to error)
Timothy A. Napthali <[EMAIL PROTECTED]> wrote: > It should be safe. All my mail servers run GMT to prevent log > confusion > (ie: It's a given that any log time is always GMT). Be very, very careful. $ export TZ=right/GMT $ date -r $((915148821 )) +%Y%m%d 19981231 $ date -r $((915148821-86400)) +%Y%m%d 19981231 There is probably a Perl module around that can handle this sort of calculation in a more robust manner. -- Christian "naddy" Weisgerber [EMAIL PROTECTED]