Skip to main content

pytimedelta_exact_as_duration

No overview available.

def pytimedelta_exact_as_duration(
td: timedelta
) - > Duration

Converts a Python timedelta object into a precise duration representation, preserving microsecond accuracy.

Parameters

NameTypeDescription
tdtimedeltaThe Python timedelta instance to be converted into a duration.

Returns

TypeDescription
DurationA duration object representing the exact span of time defined by the input timedelta.