Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Questions on Optimisation (DateTime::SpanSet and RRDs.pm)

by edoc (Chaplain)
on Jan 26, 2005 at 13:48 UTC ( [id://425207]=note: print w/replies, xml ) Need Help??


in reply to Questions on Optimisation (DateTime::SpanSet and RRDs.pm)

Does this do what you need? If so, I'm guessing it should do a bit less work than DateTime would..

my ( $minute, $hour, $day, $month, $year, $wday ) = ( localtime( $start ) )[ 1, 2, 3, 4, 5, 6 ]; next unless (($wday >= 1) && ($wday <= 5) && ($hour >= 8) && ($hour < 18));

cheers,

J

Replies are listed 'Best First'.
Re^2: Questions on Optimisation (DateTime::SpanSet and RRDs.pm)
by smullis (Pilgrim) on Jan 26, 2005 at 14:25 UTC

    Thankyou!

    This is exactly the kind of answer I was looking for...

    Cheers

    SM

Log In?
Username:
Password:

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

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

    No recent polls found