Re: date command two days from now
- From: Enrique Sanchez Vela <esanchezvela@xxxxxxxxx>
- Date: Tue, 23 Jan 2007 15:52:42 -0800
I would use perl,
perl -e ' $string=localtime( time()+48*3600),print
"$string \n"'
Thu Jan 25 18:52:05 2007
regards,
esv.
--- Andrew.Townsend@xxxxxxxxx wrote:
Is there a way to get the date from say two days
from now or two hours from
now for scripting purposes?
I mean like:
date +"%d %h %y" gives you 23 Jan 07
But I want
23 Jan 07
Or instead of "Tuesday" I'm looking for "Thursday".
Any ideas?
Thanks,
Enrique Sanchez Vela
email: esanchezvela@xxxxxxxxx
--------------------------------------
http://www.savetheinternet.com/
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
- Follow-Ups:
- Re: date command two days from now
- From: Uncle Steve
- Re: date command two days from now
- References:
- date command two days from now
- From: Andrew . Townsend
- date command two days from now
- Prev by Date: Re: console on 7028 6C1
- Next by Date: AIX 5.3 tcpip auditing
- Previous by thread: date command two days from now
- Next by thread: Re: date command two days from now
- Index(es):
Relevant Pages
|
|