From 5b886e87046967999dbcf7f9509a60785e78266e Mon Sep 17 00:00:00 2001 From: Josh Dady Date: Thu, 25 Dec 2008 09:23:57 -0500 Subject: [PATCH] Added a strftime filter --- lib/jekyll/filters.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb index 6051626a..f3cd8470 100644 --- a/lib/jekyll/filters.rb +++ b/lib/jekyll/filters.rb @@ -9,6 +9,10 @@ module Jekyll date.strftime("%d %B %Y") end + def strftime(date, format = '%x') + date.strftime(format) + end + def date_to_xmlschema(date) date.xmlschema end