Sha256: 0b684ce7c4b4517d3db48a872211f1cc7418eceac2d0559d001ac0dc0e4b229e

Contents?: true

Size: 220 Bytes

Versions: 38

Compression:

Stored size: 220 Bytes

Contents

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

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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
motion-prime-1.0.7 motion-prime/core_ext/time.rb
motion-prime-1.0.6 motion-prime/core_ext/time.rb
motion-prime-1.0.5 motion-prime/core_ext/time.rb
motion-prime-1.0.4 motion-prime/core_ext/time.rb
motion-prime-1.0.3 motion-prime/core_ext/time.rb
motion-prime-1.0.2 motion-prime/core_ext/time.rb
motion-prime-1.0.1 motion-prime/core_ext/time.rb
motion-prime-1.0.0 motion-prime/core_ext/time.rb
motion-prime-0.9.9.2 motion-prime/core_ext/time.rb
motion-prime-0.9.9.1 motion-prime/core_ext/time.rb
motion-prime-0.9.9 motion-prime/core_ext/time.rb
motion-prime-0.9.8 motion-prime/core_ext/time.rb
motion-prime-0.9.7 motion-prime/core_ext/time.rb
motion-prime-0.9.6 motion-prime/core_ext/time.rb
motion-prime-0.9.5 motion-prime/core_ext/time.rb
motion-prime-0.9.4 motion-prime/core_ext/time.rb
motion-prime-0.9.3 motion-prime/core_ext/time.rb
motion-prime-0.9.2 motion-prime/core_ext/time.rb
motion-prime-0.9.1 motion-prime/core_ext/time.rb
motion-prime-0.9.0 motion-prime/core_ext/time.rb