[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date -d yesterday?



> date -r $(expr $(date +%s) - 86400)

Unless you're running at secure level 2, where the clock can't be
turned back.

David S.


> 
> On Fri, Feb 08, 2002 at 12:51:30PM -0600, Lance Spitzner wrote:
>  > For scripting purposes, I'm attempting to have date(1)
>  > actually get yesterday's date.  With Linux, this can
>  > be done with the command "date -d yesterday".  How
>  > do I achieve the same functionality with OpenBSD
>  > date(1)?