/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
jsons
/
serializers
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.89
PHP 8.3.16
Dir:
/opt/alt/python37/lib/python3.7/site-packages/jsons/serializers
Edit:
/opt/alt/python37/lib/python3.7/site-packages/jsons/serializers/default_timedelta.py
from datetime import timedelta def default_timedelta_serializer(obj: timedelta, **kwargs) -> float: """ Serialize the given timedelta instance to a float holding the total seconds. :param obj: the timedelta instance that is to be serialized. :param kwargs: not used. :return: ``timedelta`` as a float. """ return obj.total_seconds()
Ukuran: 379 B