>hello,
>is there something in perl through which i can get
>date previous to some specified days ,say 20 days befores date
>i need to know only dd-mm-yy and not time
>is there any module function for it
>thanks
>shweta
I have seen several people mention Date::Calc, I believe that is overkill
for your situation.
Take a look at the localtime function (perldoc -f localtime).
This will dump the date you specified into epoch time and then you can
subtract the specified days (converted into seconds) from that number.
-----------------------------------------
Craig Moynes
Internship Student
netCC Development
IBM Global Services, Canada
Tel: (905) 316-3486
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]