am confused with this example, tho i want to compare from current to last update time like this way without using sub
use strict; use warnings; use Time::Piece; use Time::Seconds qw/ ONE_DAY /; my $last_update = ('2025-06-30 14:40:26'); my current_date = localtime; if ($last_update < 20) { print "20 days havent passed\n"; } else { print "20 days have passed\n"; }
In reply to Re^2: MySQL datetime
by joyfedl
in thread MySQL datetime
by joyfedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |