def _json_decode_datetime(d):
 return datetime.datetime.strptime(d['isostr'], _DATETIME_FORMAT)

def _json_decode_datetime ( d ) : return datetime . datetime . strptime ( d [ 'isostr' ] , _DATETIME_FORMAT )
converts a dict of json primitives to a datetime object .