strftime will do it.
t = Time.now
t.strftime("%I:%M%p")
All other attributes here:
http://www.wetware.co.nz/blog/2009/07/rails-date-formats-strftime/
strftime will do it.
t = Time.now
t.strftime("%I:%M%p")
All other attributes here:
http://www.wetware.co.nz/blog/2009/07/rails-date-formats-strftime/