Class: Time

Inherits:
Object
  • Object
show all
Defined in:
motion-prime/core_ext/time.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.short_iso8601(time) ⇒ Object



6
7
8
9
# File 'motion-prime/core_ext/time.rb', line 6

def self.short_iso8601(time)
  cached_date_formatter("yyyyMMdd'T'HHmmss'Z'").
    dateFromString(time.gsub(/[\:\-]*/, ''))
end

Instance Method Details

#to_short_iso8601Object



2
3
4
# File 'motion-prime/core_ext/time.rb', line 2

def to_short_iso8601
  clone.utc.strftime("%Y%m%dT%H%M%SZ")
end