Module: Geet::Helpers::JsonHelper

Included in:
Github::Milestone
Defined in:
lib/geet/helpers/json_helper.rb

Instance Method Summary collapse

Instance Method Details

#parse_iso_8601_timestamp(timestamp) ⇒ Object

Most common Json time format.

Returns nil if nil is passed.



12
13
14
# File 'lib/geet/helpers/json_helper.rb', line 12

def parse_iso_8601_timestamp(timestamp)
  Time.iso8601(timestamp).to_date if timestamp
end