---
title: "Discussion on \"How to Use datetime.timedelta in Python With Examples\" | Hashnode"
description: "Discussion on \"How to Use datetime.timedelta in Python With Examples\". Learn how to add a time delta to a datetime or date; convert timedelta to seconds, minutes, hours, days, and year"
url: "https://hashnode.com/posts/how-to-use-datetimetimedelta-in-python-with-examples/5fafbae0ab2abe435ce68d8e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Use datetime.timedelta in Python With Examples](https://miguendes.me/how-to-use-datetimetimedelta-in-python-with-examples?utm_source=hashnode&utm_medium=feed)

Learn how to add a time delta to a datetime or date; convert timedelta to seconds, minutes, hours, days, and year

Nov 14, 2020 · 12 min read · miguendes.me  
Updated Jan 14, 2022  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Miguel Brito](https://hashnode.com/@miguendes)

@miguendes · London, UK

  
[View profile](https://hashnode.com/@miguendes)

Machine Learning Software Engineer - Hobbyst Technical Writer - Interested in Software Testing, Best Practices, Scalability, and Python.

AI Software Engineer based in London, UK with 6+ years of professional experience developing and releasing software in different programming languages - Hobbyist Technical Writer - Interested in Software Testing, Best Practices, Scalability, Machine Learning/AI, and Python.

## Responses 2

Markdown supported · ⌘↵ to post

[Yakov Keselman](https://hashnode.com/@yakovsi)

[Mar 3, 2022](https://hashnode.com/posts/how-to-use-datetimetimedelta-in-python-with-examples/5fafbae0ab2abe435ce68d8e/comment/62204962f1a32619afa3b21c)

Really nicely done. Have been programming in Python for years; had never seen this.

[Paula Maranhão](https://hashnode.com/@pmaranhaor)

[Nov 15, 2020](https://hashnode.com/posts/how-to-use-datetimetimedelta-in-python-with-examples/5fafbae0ab2abe435ce68d8e/comment/5fb169ae0f6d4f4d2f66a259)

Great stuff once more!
