Alrighty - I have a program that when ran, needs to determine its current date (no biggie there), but it needs to know to take that date and then distinguish when it should run - "Every other Thursday" if that's the case, "after 5pm on Monday", "daily at 2pm", etc. What makes it a hair more interesting is that it needs to be able to distinguish between numeric dates and word style dates (word style being like Wednesday, Feb 21, 2001)
I have looked at
Date::Manip and it's just a beast - IMHO, the docs are at the very least somewhat difficult to understand - kicker is that it would do everything I needed if I could just figure it all out.
I also looked at
Date::Calc and it appears to do what I need/want as well, but I have no idea if its a worthy module or what have you...
I know I could try to write something to do all the forming of the needed info, but I also know there has to be an easy to understand, already created, perl module to do all of this... I have searched the monastery already and couldnt seem to find anyone asking a question similar to this.
Have any of you had an issue like this and worked with a good/easy perl module or created something to do these things? I would like to refrain from doing loads of calls to *nix "date" if possible - not to mention buttloads of mathematics..
-oakley
Embracing insanity - one twitch at a time >:)
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.