Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: DateTime days limit

by Corion (Patriarch)
on Apr 20, 2020 at 21:16 UTC ( [id://11115847]=note: print w/replies, xml ) Need Help??


in reply to DateTime days limit

I think the easiest approach is to simply compare the date parts:

if( $reservation_date->ymd gt $days_from_now->ymd ) { ... }

Replies are listed 'Best First'.
Re^2: DateTime days limit
by htmanning (Friar) on Apr 20, 2020 at 21:28 UTC
    Perfect!

    Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found