10,300 results
Open links in new tab
  1. datetime — Basic date and time types — Python 3.15.2 documentation

    Since the string representation of timedelta objects can be confusing, use the following recipe to produce a more readable format:

  2. datetime.timedelta() function - Python - GeeksforGeeks

    Jan 13, 2026 · The datetime.timedelta () function in Python is used to represent a time difference. It allows you to add or subtract …

  3. Python timedelta: Time Differences - PyTutorial

    May 4, 2026 · Learn how to use Python timedelta for date and time arithmetic. Master adding, subtracting, and comparing durations …

  4. Python DateTime - Timedelta Class - GeeksforGeeks

    Jul 23, 2025 · This method returns the duration provided by the timedelta object in the number of seconds. Note: For a duration of …

  5. Python timedelta: Working With Time Intervals in Python

    Jun 2, 2024 · In Python, timedelta is a data type within the datetime module used to represent durations or differences between two …

  6. DateTime Objects — Python 3.15.2 documentation

    2 days ago · Return a datetime.timedelta object representing the given number of days, seconds and microseconds. Normalization is …

  7. Python Timedelta [Complete Guide]– PYnative

    Jul 4, 2021 · The Timedelta class available in Python’s datetime module. Use the timedelta to add or subtract weeks, days, hours, …

  8. python - Understanding timedelta - Stack Overflow

    Jul 19, 2011 · You hint at this, but It's worth explicitly noting that timedelta does a lot more than display things in HH:MM:SS format. …

  9. How to Calculate the Difference Between Two Dates in Python

    Aug 7, 2026 · Learn how to calculate the difference between two dates in Python using timedelta, date subtraction, and dateutil. …

  10. Python `datetime` and `timedelta`: A Comprehensive Guide

    Jan 29, 2025 · The timedelta class in Python's datetime module represents a duration, the difference between two dates or times. It …