{"id":17749843,"url":"https://github.com/stscoundrel/year-2038-problem","last_synced_at":"2025-04-01T08:19:42.749Z","repository":{"id":103943553,"uuid":"388133713","full_name":"stscoundrel/year-2038-problem","owner":"stscoundrel","description":"Demonstration of year 2038 problem in Rust","archived":false,"fork":false,"pushed_at":"2022-05-20T13:19:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T07:38:24.805Z","etag":null,"topics":["integer-overflow","rust","y2038","y2k","y2k38","year-2038-problem"],"latest_commit_sha":null,"homepage":"","language":"Rust","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-21T13:56:38.000Z","updated_at":"2022-05-20T13:19:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ebcd15b-c20a-48b9-9335-6bc1bd05e99c","html_url":"https://github.com/stscoundrel/year-2038-problem","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","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fyear-2038-problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stscoundrel","download_url":"https://codeload.github.com/stscoundrel/year-2038-problem/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":["integer-overflow","rust","y2038","y2k","y2k38","year-2038-problem"],"created_at":"2024-10-26T11:25:13.222Z","updated_at":"2025-04-01T08:19:42.729Z","avatar_url":"https://github.com/stscoundrel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Year 2038 problem\n\nDemonstration of year 2038 problem in Rust.\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- Uses wrapped add to increase it by 1 without causing overflow errors\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`cargo run`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fyear-2038-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstscoundrel%2Fyear-2038-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fyear-2038-problem/lists"}