At 12:45 PM 09/26/2001 +0530, Rahul Garg wrote:
>is there any command in linux to get yesterdays date  -mm/dd/yy
>
>or can a program be written for it in perl...any suggestions

One way to do it is to get the time(), subtract 86400 from it, then feed
the result to localtime().

Or you could just use Date::Calc, but thats just not as fun ;)

Aloha,
mel


--
mel matsuoka                    Hawaiian Image Productions
Chief Executive Alphageek              (vox)1.808.531.5474
[EMAIL PROTECTED]                  (fax)1.808.526.4040

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to