[PR #1260] [CLOSED] add datedelta #1125

Closed
opened 2025-11-06 13:09:50 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/1260
Author: @SaketJNU
Created: 3/18/2019
Status: Closed

Base: masterHead: datadelta


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 README.md (+2 -1)

📄 Description

What is this Python project?

This project deals with simple arithmetic operations on date and time based on Gregorian calendar.

Describe features.

What's the difference between this Python project and similar ones?

There are two date arithmetic traps in the Gregorian calendar:
(1) Leap years. Problems arise when adding years to a February 29th gives a result in a non-leap year.
(2)Variable number of days in months. Problems arise when adding months to a 29th, 30th or 31st gives a result in a month where that day doesn't exist.
In both cases, the result must be changed to the first day of the next month.

Enumerate comparisons.

--

Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/1260 **Author:** [@SaketJNU](https://github.com/SaketJNU) **Created:** 3/18/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `datadelta` --- ### 📝 Commits (1) - [`8a36e48`](https://github.com/vinta/awesome-python/commit/8a36e48019abce7314f2aecf4995b085b639dfde) add datedelta ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -1) </details> ### 📄 Description ## What is this Python project? This project deals with simple arithmetic operations on date and time based on Gregorian calendar. Describe features. ## What's the difference between this Python project and similar ones? There are two date arithmetic traps in the Gregorian calendar: (1) Leap years. Problems arise when adding years to a February 29th gives a result in a non-leap year. (2)Variable number of days in months. Problems arise when adding months to a 29th, 30th or 31st gives a result in a month where that day doesn't exist. In both cases, the result must be changed to the first day of the next month. Enumerate comparisons. -- Anyone who agrees with this pull request could vote for it by adding a :+1: to it, and usually, the maintainer will merge it when votes reach **20**. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:09:50 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#1125