Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix mkdir/rmdir(Date) breakage TimToady++
  • Loading branch information
lizmat committed Oct 20, 2014
1 parent df4b494 commit 3975e16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Temporal.pm
Expand Up @@ -4,6 +4,9 @@ my class Date { ... }
my @UNITS = <second minute hour day week month year> X~ '', 's';

my role Dateish {

method IO(|c) { IO::Path.new(self) }

method is-leap-year($y = $.year) {
$y %% 4 and not $y %% 100 or $y %% 400
}
Expand Down

0 comments on commit 3975e16

Please sign in to comment.