Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
correct previous commit
  • Loading branch information
moritz committed Oct 2, 2011
1 parent 8187463 commit 9fb628f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-temporal/DateTime-Instant-Duration.t
Expand Up @@ -23,7 +23,7 @@ sub dti(*%args) { DateTime.new(|{year => 1984, %args}).Instant }

sub dsi($s) { DateTime.new($s).Instant }

sub diff(%early, *%late) { + do dti(|%late) - dti(|%early) }
sub diff(%early?, *%late) { + do dti(|%late) - dti(|%early) }

sub days($n) { $n * 24 * 60 * 60 }

Expand Down

0 comments on commit 9fb628f

Please sign in to comment.