Module: Helium::Utils
- Included in:
- Client
- Defined in:
- lib/helium/utils.rb
Instance Method Summary collapse
Instance Method Details
#datetime_to_iso(datetime) ⇒ Object
3 4 5 6 |
# File 'lib/helium/utils.rb', line 3 def datetime_to_iso(datetime) return nil if datetime.nil? Time.parse(datetime.to_s).utc.iso8601 end |