TimeDelta

TimeDelta can be used to interact with datetime.timedelta objects.

Properties

NameTypeDescriptionNotes
typestr[optional] [default to ‘TimeDelta’]
daysint
microsecondsint
secondsint

Example

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)

[Back to Model list] [Back to API list] [Back to README]