joyfedl has asked for the wisdom of the Perl Monks concerning the following question:
How can I convert MySQL datetime format without considering time
my $last_update = ('2025-06-30 14:40:26'); #convert to days without co +nsidering time if ($last_update < 20) { # if last update was done less than 20 days a +go print "20 days has not passed for you to update again" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL datetime
by hippo (Archbishop) on Jul 01, 2025 at 13:13 UTC | |
by joyfedl (Acolyte) on Jul 01, 2025 at 14:40 UTC | |
by hippo (Archbishop) on Jul 01, 2025 at 14:58 UTC | |
by joyfedl (Acolyte) on Jul 01, 2025 at 15:21 UTC | |
by ikegami (Patriarch) on Jul 01, 2025 at 15:14 UTC | |
by hippo (Archbishop) on Jul 01, 2025 at 17:27 UTC | |
by ikegami (Patriarch) on Jul 01, 2025 at 21:55 UTC | |
|
Re: MySQL datetime
by ysth (Canon) on Jul 01, 2025 at 15:30 UTC | |
|
Re: MySQL datetime
by talexb (Chancellor) on Jul 03, 2025 at 15:35 UTC |