pandas.Timedelta.components — pandas 3.0.0.dev0+2103.g41968a550a documentation (original) (raw)
Timedelta.components#
Return a components namedtuple-like.
Each component represents a different time unit, allowing you to access the breakdown of the total duration in terms of days, hours, minutes, seconds, milliseconds, microseconds, and nanoseconds.
See also
Returns the total duration of the Timedelta in seconds.
Convert argument to Timedelta.
Represents a duration, the difference between two dates or times.
Examples
td = pd.Timedelta('2 day 4 min 3 us 42 ns') td.components Components(days=2, hours=0, minutes=4, seconds=0, milliseconds=0, microseconds=3, nanoseconds=42)