Skip to content

Commit

Permalink
Adds new Date 2022.03 Raku#4043
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Mar 21, 2022
1 parent ad6c0c6 commit 72dce1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/Type/Date.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ or DateTime object. Optionally accepts a formatter as a named parameter.
$date = Date.new(Instant.from-posix: 1482155532);
$date = Date.new(DateTime.now);
Since Rakudo 2022.03, the "day" argument can also be a callable, with C<*>
representing the last day in a month, and the possibility of getting to the
day counting from the last one:
say Date.new(2042, 2, *); # OUTPUT: «2042-02-28␤»
say Date.new(2044, 2, *); # OUTPUT: «2044-02-29␤»
=head2 method new-from-daycount
Defined as:
Expand Down

0 comments on commit 72dce1a

Please sign in to comment.