in reply to strptime("%Y-%m") in perl6
say Date.new(year => 2019, month => 1);
I don't see any other signature where the missing day would pass:
multi method new($year, $month, $day, :&formatter --> Date:D) multi method new(:$year!, :$month = 1, :$day = 1 --> Date:D) multi method new(Str $date --> Date:D) multi method new(Instant:D $dt --> Date:D) multi method new(DateTime:D $dt --> Date:D)
|
|---|