Sha256: 4700b55a1a90a6e7f7ab5d51fd210e4ad9fe06560b3f3dfb9898ef27865b1788

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enki-engine-0.0.5 app/helpers/enki/date_helper.rb
enki-engine-0.0.4 app/helpers/enki/date_helper.rb
enki-engine-0.0.3 app/helpers/enki/date_helper.rb
enki-engine-0.0.2 app/helpers/enki/date_helper.rb