Skip to content

Commit

Permalink
adds .perl refs #2632
Browse files Browse the repository at this point in the history
Added the fact that from version 6.2, .perl can be called on Date
  • Loading branch information
ElenaMerelo committed Mar 2, 2019
1 parent 1a94bfb commit 8f9a729
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/Type/Date.pod6
Expand Up @@ -27,6 +27,8 @@ an object the current day according to the system clock.
my $n = Date.new('2015-12-31'); # New Year's Eve
say $n - $d; # OUTPUT: «7␤», 7 days between New Years/Christmas Eve
say $n + 1; # OUTPUT: «2016-01-01␤»
B<Note> since version 6.2, .perl can be called on C<Date>.
=head1 Methods
Expand Down Expand Up @@ -361,4 +363,4 @@ L«C<Date>|/type/Date» object.
=end pod

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 comments on commit 8f9a729

Please sign in to comment.