Sha256: 9d1bd001b6e5c17c4ff339cd6cb248beda1b5a369155c62b1a9f3842b7a950ae
Contents?: true
Size: 257 Bytes
Versions: 16
Compression:
Stored size: 257 Bytes
Contents
class Time def to_json(*a) %("#{strftime("%Y/%m/%d %H:%M:%S +0000")}") end def self.json_create string return nil if string.nil? d = DateTime.parse(string).new_offset self.utc(d.year, d.month, d.day, d.hour, d.min, d.sec) end end
Version data entries
16 entries across 16 versions & 4 rubygems