Larry has wanted an easter_date function in Perl ever since Perl 3, saying it's a glaring omission from Perl. But as most people will know, the Easter Bunny holds the copyrights and patents on all that's related to Easter. And while the Bunny grants licenses free of charge to almost anybody, it turns out the Easter Bunny is really Guido van Rossum in a fury suit. And he has denied Perl to the right to include an
easter_date() function in Perl.
Perl6 will likely to have a Western object, with Western falling either half a year before Easter, or half a year after. You can get the Western date by calling the date function in it (it takes a mandatory year as argument):
print western.date(now.date.year(-digits => 4)).as_string();
Alternatively, there will be a Unicode character for it (one from the 3 upcoming Unicode planes reserved for Perl characters). But there will be a ASCII equivalent, Huffman encoded to 7 characters. Described on page 13,897 of the compact abridged Perl6 pocket reference guide.
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.