http://doc.perl6.org/type/Date says
my $c = Date.new('2012-12-24');
say $c.truncated-to(:year); # 2012-01-01
but this doesn't work and what's implemented appears to be year
rather than :year
$ perl6
my $c = Date.new('2012-12-24');
2012-12-24
say $c.truncated-to(year)
2012-01-01
Which is
Hi,
On 11/10/2014 01:39 PM, Steve Mynott wrote:
http://doc.perl6.org/type/Date says
my $c = Date.new('2012-12-24');
say $c.truncated-to(:year); # 2012-01-01
but this doesn't work and what's implemented appears to be year
rather than :year
$ perl6
my $c = Date.new('2012-12-24');