DateTime is at 1.59 since 2022-10-23. Because you have cpan set to use strawberryperl's mirror, even though CPAN mirrors aren't recommended since the central server handles loadbalancing now, you are relying on strawberryperl being up-to-date; given that they haven't released a new version of perl since 2021, expecting their cpan-mirror to be more up-to-date than their perl version is a bit optimistic. I always use cpanm client from strawberryperl, without overriding to any mirrors, and it has no problem deciding it's time to update DateTime.

But even in v1.54's documentation, the local_day_of_week documentation matches hippo's quote. You are quoting from the SYNOPSIS, and are quoting an example of day_of_week() even though your original code used local_day_of_week(), which is a different function with different return values.


In reply to Re^6: Baffled by DateTime by pryrt
in thread Baffled by DateTime by BernieC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.