On Sun, Sep 22, 2002 at 08:32:11PM +0200, Michael Pahle wrote:
> 
> Is there any command or option, to get the date of yesterday or tomorrow?

man date, quite flexible:

[hal@cadillac tmp]$ date -d "now"
Sun Sep 22 14:52:00 EDT 2002

[hal@cadillac tmp]$ date -d "tomorrow"
Mon Sep 23 14:52:04 EDT 2002

[hal@cadillac tmp]$ date -d "yesterday"
Sat Sep 21 14:52:11 EDT 2002

[hal@cadillac tmp]$ date -d "+2 days" '+%d'
24

-- 
Hal Burgiss
 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to