def _json_encode_datetime(o):
  return {"isostr": o.strftime(_DATETIME_FORMAT)}
Json encode a datetime object.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/model.py/_json_encode_datetime