What would be the advantage of using that rather than
(localtime ($date))[6]? The only differences I see, based on the Date::Manip docs, seem to be whether the date is specified in epoch seconds or as m/d/y and whether Sunday is considered to be day 0 or day 7.
If there is an advantage, I can definitely switch, but I personally prefer to handle dates internally as epoch times and, in this case, to use localtime to get the day of week directly from that value rather than converting the epoch time to m/d/y so that m/d/y can be given to Date_DayOfWeek. I suppose I don't want to change it without knowing why I'm changing it.
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.