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

Re^3: Determine if a given DateTime is a member of a DateTime::Set

by farang (Chaplain)
on May 13, 2013 at 09:21 UTC ( #1033272=note: print w/replies, xml ) Need Help??


in reply to Re^2: Determine if a given DateTime is a member of a DateTime::Set
in thread Determine if a given DateTime is a member of a DateTime::Set

I agree, the documentation for that module is murky and confusing. I also played around with it for a while without success. DateTime::Event::ICal has a cleaner API for creating the DateTime::Set object. This replacement makes it work, leaving the rest of the original code alone.

use DateTime::Event::ICal; my $biweekly = DateTime::Event::ICal->recur( dtstart => DateTime->today(), freq => 'weekly', interval => 2, );

  • Comment on Re^3: Determine if a given DateTime is a member of a DateTime::Set
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2023-03-20 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?