lib/monkeypatches/time.rb in mattly-exegesis-0.2.3 vs lib/monkeypatches/time.rb in mattly-exegesis-0.2.5

- old
+ new

@@ -1,7 +1,10 @@ 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.strftime("%Y/%m/%d %H:%M:%S +0000") + self.getutc.iso8601 end def to_json(options = nil) %("#{to_json_format}") end \ No newline at end of file