Check out the Time::Local module.

-----Original Message-----
From: Ho, Tony [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: Perl dates


Hi guys,
I was wondering if you could help me.
I have a variable in my perl code called $deadline_date.
I assign $deadline_date the value 20011212. The date format is YYYYMMDD.
 
I have a file which contains 2 columns of values i.e. date and product as
follows:
 
20011001 abc
20010701 bcd
20011101 efg
20010201 hij
 
I need to select those rows which has a date less than 3 months before the
$deadline_date i.e. rows 1 and 3
 
How can I use DATE functionalities in perl to do this comparison ?
Any advice would be appreciated.
Thanks in advance
Tony
 


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

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

Reply via email to