in reply to Re^2: strptime("%Y-%m") in perl6
in thread strptime("%Y-%m") in perl6

But also
$ perl -MTime::Piece -le 'localtime()->strptime(shift, "%Y-%m-%d"); pr +int "ok"' 2019-02-30 ok
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]