# File lib/rhc/helpers.rb, line 41 def date(s) now = Date.today d = datetime_rfc3339(s).to_time if now.year == d.year return d.strftime('%l:%M %p').strip if now.yday == d.yday d.strftime('%b %d %l:%M %p') else d.strftime('%b %d, %Y %l:%M %p') end rescue ArgumentError "Unknown date" end