{"id":23120214,"url":"https://github.com/rehankarthikchandralal/dynamic-date-processing-utilities","last_synced_at":"2025-10-06T21:43:31.239Z","repository":{"id":261995917,"uuid":"885921344","full_name":"rehankarthikchandralal/Dynamic-Date-Processing-Utilities","owner":"rehankarthikchandralal","description":"This project is used for performing essential date-related operations, including calculating the number of days in a month, validating dates, finding the number of days between two dates, and calculating age in days. It simplifies date manipulation and validation, providing reusable functions for a range of chronological calculations.","archived":false,"fork":false,"pushed_at":"2025-01-22T23:36:31.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T03:14:40.426Z","etag":null,"topics":["python","python-scripting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rehankarthikchandralal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T18:36:57.000Z","updated_at":"2025-01-22T23:36:34.000Z","dependencies_parsed_at":"2024-11-09T20:18:07.465Z","dependency_job_id":"3cd01cd6-cc61-454a-aa1b-4fffbc60da60","html_url":"https://github.com/rehankarthikchandralal/Dynamic-Date-Processing-Utilities","commit_stats":null,"previous_names":["rehankarthikchandralal/dynamic-date-processing-utilities"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rehankarthikchandralal/Dynamic-Date-Processing-Utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehankarthikchandralal%2FDynamic-Date-Processing-Utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehankarthikchandralal%2FDynamic-Date-Processing-Utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehankarthikchandralal%2FDynamic-Date-Processing-Utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehankarthikchandralal%2FDynamic-Date-Processing-Utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehankarthikchandralal","download_url":"https://codeload.github.com/rehankarthikchandralal/Dynamic-Date-Processing-Utilities/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehankarthikchandralal%2FDynamic-Date-Processing-Utilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686634,"owners_count":26028325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-scripting"],"created_at":"2024-12-17T06:09:29.082Z","updated_at":"2025-10-06T21:43:31.212Z","avatar_url":"https://github.com/rehankarthikchandralal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README: DDPU Class for Date and Time Calculations\n\n## Overview\n\nThe `DDPU` class provides methods for working with dates:\n- Calculate the number of days in a given month and year.\n- Validate if a date is valid.\n- Calculate the number of days between two dates.\n- Calculate the age of a person in days from their birth date.\n\nIt uses Python's built-in `datetime` module.\n\n## Methods\n\n### 1. `days_in_month(self, year, month)`\nReturns the number of days in a specific month and year. Returns `None` for invalid input.\n\n### 2. `is_valid_date(self, year, month, day)`\nReturns `True` if the date is valid; otherwise, `False`.\n\n### 3. `days_between(self, year1, month1, day1, year2, month2, day2)`\nReturns the number of days between two dates. Returns `None` if any date is invalid or the second date is earlier than the first.\n\n### 4. `age_in_days(self, year, month, day)`\nReturns the age in days based on the given birth date. Returns `None` if the date is invalid or in the future.\n\n## Usage Example\n\n```python\ntest = DDPU()\n\n# Get the number of days in a month\nprint(test.days_in_month(2023, 12))  # Output: 31\n\n# Check if a date is valid\nprint(test.is_valid_date(2022, 11, 3))  # True\n\n# Calculate the days between two dates\nprint(test.days_between(2023, 1, 1, 2023, 1, 10))  # 9\n\n# Calculate the age in days\nprint(test.age_in_days(2000, 1, 1))  # Number of days since Jan 1, 2000\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehankarthikchandralal%2Fdynamic-date-processing-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehankarthikchandralal%2Fdynamic-date-processing-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehankarthikchandralal%2Fdynamic-date-processing-utilities/lists"}