Mayank wrote:
> 
> Hi all

Hello,

> Is there a module/or some function to do calculations on date e.g. if
> today is 1st March, and i want the date for previous day (i.e. 28th or
> 29th Feb)


$ perl -le'
print scalar localtime;
print scalar localtime( time - 24 * 60 * 60 );
'
Fri Feb  8 04:36:56 2002
Thu Feb  7 04:36:56 2002



John
-- 
use Perl;
program
fulfillment

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

Reply via email to