Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: A question to iterator in Datetime::Event::Recurrence

by vagabonding electron (Hermit)
on Apr 11, 2012 at 12:05 UTC ( #964526=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        print "$start\n" if $start->hour > 6 and $start->hour < 23;
        $start->add( hours => 1 );
    }
    
  2. or download this
    $set = DateTime::Set->from_recurrence( 
            after => $start, 
    ...
    {
            print $dt->ymd;
    };
    
  3. or download this
    my $set2 = $set->grep( 
            sub {
    ...
    {
            print $dt->ymd;
    };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (21)
As of 2015-07-07 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls