Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by edoc (Chaplain)
on Jan 26, 2005 at 13:48 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (None)
    As of 2022-01-26 06:13 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      In 2022, my preferred method to securely store passwords is:












      Results (69 votes). Check out past polls.

      Notices?