Skip to main content

duration_microseconds

Calculates the total number of microseconds in a given timedelta object by combining days, seconds, and microseconds.

def duration_microseconds(
delta: timedelta
) - > int

Calculates the total duration of a timedelta object expressed in microseconds.

Parameters

NameTypeDescription
deltatimedeltaThe timedelta object representing the time span to be converted into microseconds.

Returns

TypeDescription
intThe total number of microseconds represented by the input duration, including days, seconds, and microseconds.