Module: Jekyll::DateParseFilter
- Defined in:
- jekyll/_plugins/date-parse.rb
Instance Method Summary collapse
Instance Method Details
#date_parse(input, format) ⇒ Object
11 12 13 14 15 |
# File 'jekyll/_plugins/date-parse.rb', line 11 def date_parse(input, format) unless input.nil? Date.strptime(input, format).to_time.to_i end end |