From date to week of year, month of year, day of year
Author: stmuk
You have a date and want week of year, month of year, day of year
Source code: 03-06-day-to-num-wmy.p6
#!/usr/bin/env perl6 use v6; my $d = Date.new("1966-08-04"); say "{$d.week-number} {$d.month} {$d.day-of-year}";