my $reservation_date = localtime->strptime("2020-03-15#", "%Y-%m-%d#") +; my $one_year_from_now = $reservation_date->add_months(-12); if ($reservation_date > $one_year_from_now) {
That's a confusing name for that variable, and also that comparison will always be true.
In reply to Re^2: DateTime issues
by haukex
in thread DateTime issues
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |