module Voom::Presenters::Helpers::Date
Constants
- LONG_FORMAT
- SHORT_FORMAT
Public Instance Methods
format_date(date, format: LONG_FORMAT)
click to toggle source
# File lib/voom/presenters/helpers/date.rb, line 8 def format_date(date, format: LONG_FORMAT) date ? date.strftime(format) : '' end
format_date_long(time, format: nil)
click to toggle source
# File lib/voom/presenters/helpers/date.rb, line 12 def format_date_long(time, format: nil) format_date(time, format: format||LONG_FORMAT) end
format_date_short(time, format: nil)
click to toggle source
# File lib/voom/presenters/helpers/date.rb, line 16 def format_date_short(time, format: nil) format_date(time, format: format||SHORT_FORMAT) end