{"id":17749839,"url":"https://github.com/stscoundrel/year-2038-problem-cpp","last_synced_at":"2025-10-10T14:12:34.571Z","repository":{"id":103943561,"uuid":"388360213","full_name":"stscoundrel/year-2038-problem-cpp","owner":"stscoundrel","description":"Demonstration of year 2038 problem in C++","archived":false,"fork":false,"pushed_at":"2022-05-20T13:18:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T07:38:24.969Z","etag":null,"topics":["cpp","integer-overflow","y2k","y2k38","year-2038-problem"],"latest_commit_sha":null,"homepage":"","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/stscoundrel.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":"2021-07-22T06:56:54.000Z","updated_at":"2022-05-20T13:18:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"29267170-8479-4150-adbb-1428a5a24fee","html_url":"https://github.com/stscoundrel/year-2038-problem-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stscoundrel/year-2038-problem-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stscoundrel","download_url":"https://codeload.github.com/stscoundrel/year-2038-problem-cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004181,"owners_count":26083688,"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-10T02:00:06.843Z","response_time":62,"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":["cpp","integer-overflow","y2k","y2k38","year-2038-problem"],"created_at":"2024-10-26T11:25:11.773Z","updated_at":"2025-10-10T14:12:34.541Z","avatar_url":"https://github.com/stscoundrel.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Year 2038 problem\n\nDemonstration of year 2038 problem in C++.\n\nThe year 2038 problem refers to maximum unix date that can be stored in i32 value. 03:14:07 UTC on 19 January 2038, the integer will overflow. Result will be incorrect time calculation, around 20:45:52 on Friday, 13 December 1901.\n\n## The test\n\n- Creates maximum value for i32\n- Increase it by one\n- In very simplified way, parse current year from the timestamp. Ignores constraints like leap years, leap seconds etc.\n\n## To run\n\n`g++ -o 2038 src/main.cpp`\n`./2038`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fyear-2038-problem-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstscoundrel%2Fyear-2038-problem-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fyear-2038-problem-cpp/lists"}