Sha256: f0fd239ecb4fa76212c5cb6212088060fc2e5a62e15ec5d705f2e6c6fa795917

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

class Time
  def self.iso8601(time)
    formatter = NSDateFormatter.alloc.init
    formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'"
    formatter.timeZone   = NSTimeZone.timeZoneWithAbbreviation "UTC"
    formatter.dateFromString time
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bubble-wrap-0.4.0 motion/core/time.rb
bubble-wrap-0.3.1 lib/bubble-wrap/time.rb
bubble-wrap-0.3.0 lib/bubble-wrap/time.rb