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).
| 11 12 13 | # File 'lib/functions.rb', line 11 def self.datetime_to_sql(o) return o.strftime("%Y-%m-%d %H:%M:%S") end |