From 7c01d32b137851e4d73a42254dbbf9053893fecd Mon Sep 17 00:00:00 2001 From: Tom Browder Date: Wed, 21 May 2025 09:28:24 -0500 Subject: [PATCH 1/2] Methods 'mm-dd-yyyy' and 'dd-mm-yyyy' inappropriately refer to ISO 8601 Kept the same link (where the formats are described), but changed the link description as appropriate for each method's format as shown on that same page, - Addresses doc issue #4576 --- doc/Type/Dateish.rakudoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Type/Dateish.rakudoc b/doc/Type/Dateish.rakudoc index 57ea25dfb..cbbae319e 100644 --- a/doc/Type/Dateish.rakudoc +++ b/doc/Type/Dateish.rakudoc @@ -183,7 +183,7 @@ say Date.today.yyyy-mm-dd("/"); # OUTPUT: «2020/03/14␤» =for code :ok-test
method mm-dd-yyyy(str $sep = "-" --> Str:D) -Returns the date in C format (L). +Returns the date in C format (L). The optional positional argument C<$sep>, which defaults to C«-», is a one-character separator placed between the different parts of the date. @@ -198,7 +198,7 @@ say Date.today.mm-dd-yyyy("/"); # OUTPUT: «03/14/2020␤» =for code :ok-test
method dd-mm-yyyy(str $sep = "-" --> Str:D) -Returns the date in C format (L). +Returns the date in C format (L). The optional positional argument C<$sep>, which defaults to C«-», is a one-character separator placed between the different parts of the date. From 99fa8babe06510c1535b025aca853ef43a4959be Mon Sep 17 00:00:00 2001 From: Tom Browder Date: Thu, 22 May 2025 06:08:13 -0500 Subject: [PATCH 2/2] correct wikipedia reference link --- doc/Type/Dateish.rakudoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Type/Dateish.rakudoc b/doc/Type/Dateish.rakudoc index cbbae319e..ac02834a9 100644 --- a/doc/Type/Dateish.rakudoc +++ b/doc/Type/Dateish.rakudoc @@ -183,7 +183,7 @@ say Date.today.yyyy-mm-dd("/"); # OUTPUT: «2020/03/14␤» =for code :ok-test
method mm-dd-yyyy(str $sep = "-" --> Str:D) -Returns the date in C format (L). +Returns the date in C format (L). The optional positional argument C<$sep>, which defaults to C«-», is a one-character separator placed between the different parts of the date. @@ -198,7 +198,7 @@ say Date.today.mm-dd-yyyy("/"); # OUTPUT: «03/14/2020␤» =for code :ok-test
method dd-mm-yyyy(str $sep = "-" --> Str:D) -Returns the date in C format (L). +Returns the date in C format (L). The optional positional argument C<$sep>, which defaults to C«-», is a one-character separator placed between the different parts of the date.