Class: ActiveSupport::TimeWithZone
Constant Summary collapse
- LOG_TIME_FORMAT =
"%a %Y-%m-%d %H:%M:%S"
- DB_TIME_FORMAT =
"%Y-%m-%d %H:%M:%S"
Instance Method Summary collapse
-
#dbf ⇒ Object
Format date and time for SQL.
-
#ltf ⇒ Object
Format date and time for log timestamp.
Instance Method Details
#dbf ⇒ Object
Format date and time for SQL
50 51 52 |
# File 'lib/wdd-ruby-ext/time.rb', line 50 def dbf strftime(DB_TIME_FORMAT) end |
#ltf ⇒ Object
Format date and time for log timestamp
45 46 47 |
# File 'lib/wdd-ruby-ext/time.rb', line 45 def ltf strftime(LOG_TIME_FORMAT) end |