Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Note that you can use :day as synonym for :1day
  • Loading branch information
lizmat committed Dec 25, 2015
1 parent 0ac8b6c commit c898c17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/Type/DateTime.pod
Expand Up @@ -322,6 +322,7 @@ unit may be passed.
my $d = DateTime.new(date => Date.new('2015-02-27'));
say $d.later(month => 1).later(:2days); # 2015-03-29T00:00:00Z
say $d.later(days => 2).later(:1month); # 2015-04-01T00:00:00Z
say $d.later(days => 2).later(:month); # same, as +True === 1
Negative offsets are allowed, though L<#method earlier> is more idiomatic for
that.
Expand Down

0 comments on commit c898c17

Please sign in to comment.