Added a strftime filter

This commit is contained in:
Josh Dady 2008-12-25 09:23:57 -05:00
parent 8477cb5946
commit 5b886e8704
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ module Jekyll
date.strftime("%d %B %Y") date.strftime("%d %B %Y")
end end
def strftime(date, format = '%x')
date.strftime(format)
end
def date_to_xmlschema(date) def date_to_xmlschema(date)
date.xmlschema date.xmlschema
end end