[SOLVED] found the parameters in a complete strftime parameters
list
sorry
On 15 fév, 15:46, Erwin <yves_duf...-ee4meeAH724@public.gmane.org>
wrote:> using the I18n helper :
>
> I18n.l( aDate, :format => ( :default/:long/:short) ) is fine to
> display a localized date ...
>
> in the rails yml file, there is also abbr_day_names: and
> abbr_month_names: that I can use with select helpers
>
> BUT
> there is no such abbr in the strftime parameters list ... ( not
> found ?)
> is there a way to use this abbr_day_names / abbr_month_names also in
> formatting dates ?
>
> i.e.
> I18n.l(Time.now, :format => :long)
> => "February 15, 2012 15:42"
>
> I18n.l(Time.now, :format => :abbr_long) would display
> => "Feb 15, 2012 15:42"
>
> thanks for your feedback
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.