TimeDelta can be used to interact with datetime.timedelta objects.
Name | Type | Description | Notes |
---|---|---|---|
type | str | [optional] [default to 'TimeDelta'] | |
days | int | ||
microseconds | int | ||
seconds | int |
from airflow_client.client.models.time_delta import TimeDelta
# TODO update the JSON string below
json = "{}"
# create an instance of TimeDelta from a JSON string
time_delta_instance = TimeDelta.from_json(json)
# print the JSON string representation of the object
print(TimeDelta.to_json())
# convert the object into a dict
time_delta_dict = time_delta_instance.to_dict()
# create an instance of TimeDelta from a dict
time_delta_from_dict = TimeDelta.from_dict(time_delta_dict)