Skip to content

Commit

Permalink
Date.gist should be the same as Date.Str
Browse files Browse the repository at this point in the history
because TimToady++ says so
  • Loading branch information
moritz committed Jan 21, 2012
1 parent e3c0af1 commit fa821c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Temporal.pm
Expand Up @@ -470,6 +470,10 @@ my class Date does Dateish {
Date.new-from-daycount($!daycount - 1);
}

multi method gist(Date:D:) {
sprintf '%04d-%02d-%02d', $.year, $.month, $.day;
}

multi method Str(Date:D:) {
sprintf '%04d-%02d-%02d', $.year, $.month, $.day;
}
Expand Down

0 comments on commit fa821c1

Please sign in to comment.