Sha256: d5aa441cd1f52de714f561f3ef79ef0c99471ea73104b3f942c0ac45b38ba854
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
class Time # returns the time, in UTC, in iso8601 format; see http://en.wikipedia.org/wiki/ISO_8601 for more details on this format # One major advantage of this format over others is that it sorts lexigraphically, so if you want f.e. just stuff from # April 2009 you may specify '2009-04'..'2009-04Z' as your key def to_json_format self.getutc.iso8601 end def to_json(options = nil) %("#{to_json_format}") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mattly-exegesis-0.2.5 | lib/monkeypatches/time.rb |
mattly-exegesis-0.2.6 | lib/monkeypatches/time.rb |
mattly-exegesis-0.2.8 | lib/monkeypatches/time.rb |