Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change constructor of Date to use default values for year/month/day

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information...
commit 1f662c9aa6ec424a4c9705571567e3605f4bd653 1 parent d71ad18
@felher felher authored moritz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core/Temporal.pm
View
2  src/core/Temporal.pm
@@ -428,7 +428,7 @@ my class Date does Dateish {
method get-daycount { $!daycount }
- multi method new(:$year!, :$month, :$day) {
+ multi method new(:$year!, :$month = 1, :$day = 1) {
my $d = self.bless(*, :$year, :$month, :$day);
$d.check-date;
$d!set-daycount(self.daycount-from-ymd($year,$month,$day));
Please sign in to comment.
Something went wrong with that request. Please try again.