Module: BlackStack::DateTime::Encoding
- Defined in:
- lib/functions.rb
Overview
Encoding
Class Method Summary collapse
-
.datetime_to_sql(o) ⇒ Object
Convierte un objeto date-time a un string con formato sql-datetime (yyyy-mm-dd hh:mm:ss).
Class Method Details
.datetime_to_sql(o) ⇒ Object
Convierte un objeto date-time a un string con formato sql-datetime (yyyy-mm-dd hh:mm:ss).
70 71 72 |
# File 'lib/functions.rb', line 70 def self.datetime_to_sql(o) return o.strftime("%Y-%m-%d %H:%M:%S") end |