{"id":18486164,"url":"https://github.com/mathsgod/date","last_synced_at":"2025-05-13T22:13:10.845Z","repository":{"id":62525123,"uuid":"253719807","full_name":"mathsgod/date","owner":"mathsgod","description":"date library for php","archived":false,"fork":false,"pushed_at":"2020-04-08T09:16:25.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T09:03:24.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathsgod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-07T07:31:36.000Z","updated_at":"2020-04-08T09:16:28.000Z","dependencies_parsed_at":"2022-11-02T10:32:08.873Z","dependency_job_id":null,"html_url":"https://github.com/mathsgod/date","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/date/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036843,"owners_count":22003654,"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","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":[],"created_at":"2024-11-06T12:48:03.973Z","updated_at":"2025-05-13T22:13:05.822Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Date\n```php\n$date = Date::Create(2000, 1, 1);\necho $date-\u003eyear; //2000\necho $date-\u003emonth; //1\necho $date-\u003eday; //1\n\n$date = Date::Now(); //now\n$date-\u003eaddYears(1); //next year\n$date-\u003eaddDays(1);\n$date-\u003eaddMonths(1);\n\n$tomorrow = Date::CreateFromString(\"tomorrow\"); //tomorrow\n```\n\n# DateRange\n```php\n$range = DateRange::Create(\"2020-01-01\", \"2020-12-31\");\necho $range-\u003econtains(\"2020-03-01\"); //true\necho $range-\u003econtains(\"2019-03-01\"); //false\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fdate/lists"}