chansen / p5-time-moment

Time::Moment represents an exact moment in time.
32 stars 8 forks source link

Example format strings - digits in the year #45

Open richlv opened 4 years ago

richlv commented 4 years ago

In https://metacpan.org/pod/Time::Moment#EXAMPLE-FORMAT-STRINGS , there's a line:

%y%m                        201212      (reduced accuracy)

https://metacpan.org/pod/Time::Moment#%y says:

Replaced by the last two digits of the year as a decimal number [00, 99].

It looks like the example should either use %Y%m or 1212.

chansen commented 1 year ago

Yes you are correct, documentation should use %Y and not %y.