module BlackStack::DateTime::Encoding
Public Class Methods
datetime_to_sql(o)
click to toggle source
Convierte un objeto date-time a un string con formato sql-datetime (yyyy-mm-dd hh:mm:ss).
# File lib/functions.rb, line 39 def self.datetime_to_sql(o) return o.strftime("%Y-%m-%d %H:%M:%S") end