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:

http://api.rubyonrails.com/classes/ActiveSupport/CoreExtensions/Numeric/Time.html#M000421
http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Time/Calculations.html#M000308

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

my_time = Time.now #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:
http://www.ruby-doc.org/core/classes/Time.html#M000139