Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Seeing if a Time is Within a Range

by LTjake (Prior)
on Oct 27, 2004 at 15:32 UTC ( [id://403055]=note: print w/replies, xml ) Need Help??


in reply to Seeing if a Time is Within a Range

You might try DateTime::Span. You can do:

if ( $span->contains( $datetime ) ) { # ... }

To see if it falls within "start" and "end".

--
"Go up to the next female stranger you see and tell her that her "body is a wonderland."
My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
" (src)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-23 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found