Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionalities related to dates. #20

Open
nstarlike opened this issue May 18, 2024 · 0 comments
Open

Add functionalities related to dates. #20

nstarlike opened this issue May 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nstarlike
Copy link
Owner

nstarlike commented May 18, 2024

We sometimes need to get dates like today, yesterday and the dates before or after 1 month, 1 year, etc while we develop some applications. To get those dates is not that simple becuase the counts of the days of a month and a year are different. For example, the days of January is 31 and the days of April is 30. And when we calculate the days of February we need to consider leap year. If the year is leap year then the days will be 29 if not it will be 28. Lastly, we need to consider whether we want to include the basis date.
The following is the list for functionalities needed.

  • To get today.
  • To get yesterday.
  • To get tomorrow.
  • To get the date x month(s) before and later.
  • To get the date x year(s) before and later.
  • To calculate the days between dates.
  • To calculate the months between dates.
  • To calculate the years between dates.

Go for it!

@nstarlike nstarlike added the enhancement New feature or request label May 18, 2024
@nstarlike nstarlike self-assigned this May 18, 2024
@nstarlike nstarlike changed the title Functionalities related to date. Add functionalities related to date. May 18, 2024
@nstarlike nstarlike changed the title Add functionalities related to date. Add functionalities related to dates. May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant