I'm looking for code to assist with managing recuring calender events for a light weight Tk based calendar application I'm working on.
So far I've found Calendar::Schedule, but unless find_next_time does undocumented magic, it doesn't seem that there is any search facility and what the module really wants to do is generate HTML - which is fine, but not for my application.
Date::Manip supports Events that look like they could do the job, but all the recuring stuff is documented as "NYI" - not yet implemented and the documentation for recuring events is rather sparse.
I'd like to be able to specify all the usual stuff:
- every Monday
- the second Monday of each month
- the 3rd of January every year
- the last Tuesday of each month
and a few slightly more interesting events like:
- the first and third Tuesday of each month
- the Friday before the first Tuesday of each month
- the Saturday closest to the new moon each month
Is there something around that does this stuff or a good part of it, or do I persevere with something like Date::Manip and add some wrapping around it?
DWIM is Perl's answer to Gödel
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.