- or download this
if ($d2 >= $1) {
- or download this
print "\n $d2 is greater or equal to $d1\n";
- or download this
DateTime->compare( $dt1, $dt2 )
- or download this
use strict;
use warnings;
...
day => 8,
time_zone => 'America/Chicago',
);
- or download this
say DateTime->compare( $d1, $d2 ) > 0
? $d1->ymd .' is greater than ' . $d2->ymd
: $d2->ymd .' is greater or equal to ' . $d1->ymd;