Skip to content

Methods 'mm-dd-yyyy' and 'dd-mm-yyyy' inappropriately refer to ISO 8601 #4579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/Type/Dateish.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ say Date.today.yyyy-mm-dd("/"); # OUTPUT: «2020/03/14␤»
=for code :ok-test<dd>
method mm-dd-yyyy(str $sep = "-" --> Str:D)

Returns the date in C<MM-DD-YYYY> format (L<ISO 8601|https://en.wikipedia.org/wiki/ISO_8601>).
Returns the date in C<MM-DD-YYYY> format (L<Gregorian, month-day-year (MDY)|https://en.wikipedia.org/wiki/Calendar_date>).
The optional positional argument C<$sep>, which defaults to C«-», is a one-character
separator placed between the different parts of the date.

Expand All @@ -198,7 +198,7 @@ say Date.today.mm-dd-yyyy("/"); # OUTPUT: «03/14/2020␤»
=for code :ok-test<dd>
method dd-mm-yyyy(str $sep = "-" --> Str:D)

Returns the date in C<DD-MM-YYYY> format (L<ISO 8601|https://en.wikipedia.org/wiki/ISO_8601>).
Returns the date in C<DD-MM-YYYY> format (L<Gregorian, day-month-year (DMY)|https://en.wikipedia.org/wiki/Calendar_date>).
The optional positional argument C<$sep>, which defaults to C«-», is a one-character
separator placed between the different parts of the date.

Expand Down