Module: Jekyll::DateParseFilter0

Defined in:
jekyll/_plugins/date-parse0.rb

Instance Method Summary collapse

Instance Method Details

#date_parse0(input, format) ⇒ Object



17
18
19
20
21
# File 'jekyll/_plugins/date-parse0.rb', line 17

def date_parse0(input, format)
	unless input.nil?
		Date.strptime(input, format).to_time.to_i rescue nil
	end
end