http://qs321.pair.com?node_id=425207


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