Package grassyknoll :: Package serial :: Module JsonSerial :: Class DateTimeAwareJSONEncoder
[hide private]

Class DateTimeAwareJSONEncoder

source code


simplejson.JSONEncoder subclass that knows how to encode date/time types

Per http://www.json.org/json.js, "official" JSON dates are ISO Dates.

Instance Methods [hide private]
 
default(self, o) source code
Class Variables [hide private]
  DATE_FORMAT = "%Y-%m-%d"
  TIME_FORMAT = "%H:%M:%S"