How to get day name using ActiveSupport libraries

Is there any way to get the name of the day (i.e. mon, tue…) using
the ActiveSupport libraries. I looked through these two libraries but
can’t seem to find it:

There might be a better way, but you could do:

my_time = #or whatever
week = %w{ Sun Mon Tue Wed Thu Fri Sat }
puts week[my_time.strftime("%w").to_i]

Can’t you just use %a or %A in ruby’s strftime ?? That should return the
abbreviated and the full weekday name respectively. I’ve used that
before with success.

For more info see: