{"id":18038034,"url":"https://github.com/quantumsheep/cpp-date","last_synced_at":"2025-04-05T00:43:05.144Z","repository":{"id":96168068,"uuid":"265326349","full_name":"quantumsheep/cpp-date","owner":"quantumsheep","description":"C++ date library","archived":false,"fork":false,"pushed_at":"2020-05-19T18:33:45.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T09:11:19.759Z","etag":null,"topics":["cpp","date","library"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/quantumsheep.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-19T18:12:19.000Z","updated_at":"2023-09-08T18:07:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0c22235-46e2-4698-81c5-2d4b3c44114e","html_url":"https://github.com/quantumsheep/cpp-date","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumsheep%2Fcpp-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumsheep%2Fcpp-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumsheep%2Fcpp-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumsheep%2Fcpp-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantumsheep","download_url":"https://codeload.github.com/quantumsheep/cpp-date/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271489,"owners_count":20911586,"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":["cpp","date","library"],"created_at":"2024-10-30T13:14:42.269Z","updated_at":"2025-04-05T00:43:05.113Z","avatar_url":"https://github.com/quantumsheep.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Date\nThe purpose of this library is to provide a reliable date implementation for C++. It started because of the outstanding complexity to generate epochs from raw dates.\n\nIt provides header-only implementation so nothing to compile, you just need to include `date/date.hpp` in your code.\n\n# Usage\nThese declarations are simplified for documentation purpose, they may vary in the actual implementation.\n\n## Date\n### Constructors\nCreates a date.\n```cpp\nDate(size_t day, size_t month, size_t year)\n```\n\nCreates a date from standard's `time_point`.\n```cpp\nDate(std::chrono::system_clock::time_point time)\n```\n\n### Static methods\nCreates a new date with of current time.\n```cpp\nDate::now()\n```\n\n### Methods\nConvert the date to epoch.\n```cpp\nstd::chrono::seconds epoch()\n```\n\n### Operators\n```cpp\nDate \u003e Date\n```\n\n```cpp\nDate \u003c Date\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumsheep%2Fcpp-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantumsheep%2Fcpp-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumsheep%2Fcpp-date/lists"}