{"id":21672693,"url":"https://github.com/ctorw/calendar-using-c","last_synced_at":"2026-05-18T17:43:06.452Z","repository":{"id":238247238,"uuid":"796176584","full_name":"CtorW/Calendar-using-C","owner":"CtorW","description":"Calendar in C++ Zeller's Congruence Algorithm","archived":false,"fork":false,"pushed_at":"2024-07-22T12:45:35.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"uno","last_synced_at":"2025-01-25T09:27:49.583Z","etag":null,"topics":["c","calendar","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CtorW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-05T06:57:31.000Z","updated_at":"2024-07-22T12:45:38.000Z","dependencies_parsed_at":"2024-11-25T13:37:49.051Z","dependency_job_id":null,"html_url":"https://github.com/CtorW/Calendar-using-C","commit_stats":null,"previous_names":["wndrofu/calendar_using_c-","ctorw/calendar-using-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CtorW%2FCalendar-using-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CtorW%2FCalendar-using-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CtorW%2FCalendar-using-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CtorW%2FCalendar-using-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CtorW","download_url":"https://codeload.github.com/CtorW/Calendar-using-C/tar.gz/refs/heads/uno","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244577022,"owners_count":20475230,"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","calendar","cpp"],"created_at":"2024-11-25T13:31:49.256Z","updated_at":"2026-05-18T17:43:01.428Z","avatar_url":"https://github.com/CtorW.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e THIS CODES ARE DEVELOPED BY [LORENCE ISIDORO](https://facebook.com/CTor.66)\n\n\u003e [!TIP]\n\u003e THIS C++ CODE HAVE A SAME CODE \n\u003e EXAMPLE : \n\u003e they have the same code, they use Zeller's Congruence Algorithm, the only difference is in the if, else statement, just added a switch statement which is the months.\n\n\u003cb\u003eCALENDAR USING C++\u003c/b\u003e\n\u003cp\u003eZeller's Congruence Algorithm\u003c/p\u003e\n\u003cp\u003eif, else statement\u003c/p\u003e\n\u003cp\u003eBasic C++ Project\u003c/p\u003e\n\n[Click here to view the Calendar if, else statement.docs](https://docs.google.com/document/d/1TAqKsfjHH92BXO5hVEdEwcBDiYE2leo0YuhfwF2ueFY/edit?usp=sharing)\n\n```c++\nint DAYSINMONTH(int month, int year) {\n  if (month == 4 || month == 6 || month == 9 || month == 11) {\n    return 30;\n  } else if (month == 2) {\n    return ISLEAPYEAR(year) ? 29 : 28;\n  } else {\n    return 31;\n  }\n}\n\nint DAYSOFYEAR(int year, int month, int day) {\n\n  int DAYSINMONTH[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};\n  year -= month \u003c 3;\n  return (year + year / 4 - year / 100 + year / 400 + DAYSINMONTH[month - 1] + day) % 7;\n}\n```\n\n![Screenshot 2024-05-05 153337](https://github.com/wndrOFu/Calendar_using_C/assets/129820204/3eb2d84c-f2ea-4a96-8da0-87faef46bca7)\n\n\n\u003cb\u003eCALENDAR USING C++\u003c/b\u003e\n\u003cp\u003eZeller's Congruence Algorithm\u003c/p\u003e\n\u003cp\u003eif, else with Switch statement\u003c/p\u003e\n\u003cp\u003eBasic C++ Project\u003c/p\u003e\n\n[Click here to view the Calendar if, else with switch statement.docs](https://docs.google.com/document/d/1Q6hQH9IMacP5K5SZMVMq0nRex2FdoIOJ0F_hfGNmGfs/edit?usp=sharing)\n\n```c++\nint DAYSINMONTH(int month, int year) {\n  switch (month) {\n    case 1:\n        case 3:\n            case 5:\n                case 7:\n                    case 8:\n                        case 10:\n                            case 12:\n      return 31;\n    case 4:\n        case 6:\n            case 9:\n                case 11:\n      return 30;\n    case 2:\n      return ISLEAPYEAR(year) ? 29 : 28;\n    default:\n      return 0;\n  }\n}\n\n\nint DAYSOFYEAR(int year, int month, int day) {\n\n  int DAYSINMONTH[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};\n  year -= month \u003c 3;\n  return (year + year / 4 - year / 100 + year / 400 + DAYSINMONTH[month - 1] + day) % 7;\n```\n\n![Screenshot 2024-05-05 161138](https://github.com/wndrOFu/Calendar_using_C/assets/129820204/4cc048ac-b582-4f2f-b2f1-7da4099106ae)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctorw%2Fcalendar-using-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctorw%2Fcalendar-using-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctorw%2Fcalendar-using-c/lists"}