Subtracting Two Dates From Each other
Author: stmuk
Subtracting Two Dates From Each other returning days
Source code: 03-05-sub-two-dates.p6
#!/usr/bin/env perl6 use v6; # the past using whole days my $past-day = Date.new("1966-08-04"); my $off-work = Date.new("2014-12-05"); say $off-work - $past-day ;