Module: Enki::DateHelper

Included in:
ApplicationController
Defined in:
app/helpers/enki/date_helper.rb

Instance Method Summary collapse

Instance Method Details

#format_comment_date(date) ⇒ Object



11
12
13
# File 'app/helpers/enki/date_helper.rb', line 11

def format_comment_date(date)
  (date) + " at " + date.strftime("%l:%M %p")
end

#format_month(date) ⇒ Object



3
4
5
# File 'app/helpers/enki/date_helper.rb', line 3

def format_month(date)
  date.strftime("%B %Y")
end

#format_post_date(date) ⇒ Object



7
8
9
# File 'app/helpers/enki/date_helper.rb', line 7

def (date)
  date.strftime("%B %d, %Y")
end