json_encode_timedelta#

json_encode_timedelta(val)[source]#

Encode timestamp objects as number of seconds passed

Parameters:

val (datetime.timedelta | None) –

Return type:

float | None