Method: Twterm::Status#date
- Defined in:
- lib/twterm/status.rb
#date ⇒ Object
17 18 19 20 |
# File 'lib/twterm/status.rb', line 17 def date format = Time.now - @created_at < 86_400 ? '%H:%M:%S' : '%Y-%m-%d %H:%M:%S' @created_at.strftime(format) end |