awsc.common.datetime_hack
- awsc.common.datetime_hack(x)
JSON dumper hack, as the base implementation of datetime doesn’t understand how to convert it to JSON.
- Parameters:
- xobject
The object the JSON dumper could not handle.
- Returns:
- str
The ISO representation of the datetime object.
- Raises:
- TypeError
If x is not a datetime.datetime object.