{"id":17749844,"url":"https://github.com/stscoundrel/year-2038-problem-c","last_synced_at":"2025-04-01T08:19:35.563Z","repository":{"id":103943556,"uuid":"388190287","full_name":"stscoundrel/year-2038-problem-c","owner":"stscoundrel","description":"Demonstration of year 2038 problem in C","archived":false,"fork":false,"pushed_at":"2022-05-20T13:18:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T07:38:24.938Z","etag":null,"topics":["c","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-21T17:07:12.000Z","updated_at":"2022-05-20T13:18:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"273fef51-5b59-4bfc-ad8d-8180b09ac6d8","html_url":"https://github.com/stscoundrel/year-2038-problem-c","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/stscoundrel%2Fyear-2038-problem-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stscoundrel","download_url":"https://codeload.github.com/stscoundrel/year-2038-problem-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246604613,"owners_count":20804101,"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":["c","integer-overflow","y2k","y2k38","year-2038-problem"],"created_at":"2024-10-26T11:25:13.234Z","updated_at":"2025-04-01T08:19:35.546Z","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\nBuild:\n`gcc -o 2038 src/main.c`\n\nRun:\n`./2038`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fyear-2038-problem-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstscoundrel%2Fyear-2038-problem-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fyear-2038-problem-c/lists"}