Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/ndr_support/date_and_time_extensions.rb

Overview


Instance Method Summary collapse

Instance Method Details

#to_isoObject

to_iso output must be SQL safe for security reasons



17
18
19
# File 'lib/ndr_support/date_and_time_extensions.rb', line 17

def to_iso
  strftime('%Y-%m-%dT%H:%M:%S')
end