Comparing dates in Perl
Posted: Thu Nov 08, 2007 4:15 pm
Here's the scenario.
I have in my database,a field called "inserted" which is a datetime. Now I have a variable in my Perl script that contains another datetime value. I want to compare these two dates to find out which one is more recent.
However I have no clue on how to do this. Please help me guys.
TIA
I have in my database,a field called "inserted" which is a datetime. Now I have a variable in my Perl script that contains another datetime value. I want to compare these two dates to find out which one is more recent.
However I have no clue on how to do this. Please help me guys.
TIA