Permalink
Browse files

Date.gist should be the same as Date.Str

because TimToady++ says so
  • Loading branch information...
moritz committed Jan 21, 2012
1 parent e3c0af1 commit fa821c1006be42223ca72d0079c3be5a7a509fec
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/Temporal.pm
View
@@ -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;
}

0 comments on commit fa821c1

Please sign in to comment.