Sha256: 84ade797835bbf9019c23a148ed7aafd3075b437f401ef746b2bce8051c9cebd
Contents?: true
Size: 906 Bytes
Versions: 23
Compression:
Stored size: 906 Bytes
Contents
# frozen_string_literal: true # rubocop:disable Naming/MethodName module Koi module DateHelper # @deprecated def date_format(date, format) date.strftime format.gsub(/yyyy/, "%Y") .gsub(/yy/, "%y") .gsub(/Month/, "%B") .gsub(/M/, "%b") .gsub(/mm/, "%m") .gsub(/m/, "%-m") .gsub(/Day/, "%A") .gsub(/D/, "%a") .gsub(/dd/, "%d") .gsub(/d/, "%-d") end # @deprecated def date_Month_d_yyyy(date) date.strftime "%B %-d, %Y" end # @deprecated def date_d_Month_yyyy(date) date.strftime "%-d %B %Y" end # @deprecated def date_d_M_yy(date) date.strftime "%-d %b %y" end end end # rubocop:enable Naming/MethodName
Version data entries
23 entries across 23 versions & 1 rubygems