{"id":28430975,"url":"https://github.com/elixir-cldr/cldr_calendars_coptic","last_synced_at":"2025-07-04T17:30:32.561Z","repository":{"id":57483171,"uuid":"226959863","full_name":"elixir-cldr/cldr_calendars_coptic","owner":"elixir-cldr","description":"Coptic localised calendar for Elixir and CLDR","archived":false,"fork":false,"pushed_at":"2025-03-19T00:36:38.000Z","size":318,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-05T14:39:41.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elixir-cldr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-12-09T20:20:01.000Z","updated_at":"2025-03-19T00:35:58.000Z","dependencies_parsed_at":"2025-03-18T22:36:28.166Z","dependency_job_id":null,"html_url":"https://github.com/elixir-cldr/cldr_calendars_coptic","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/elixir-cldr/cldr_calendars_coptic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-cldr%2Fcldr_calendars_coptic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-cldr%2Fcldr_calendars_coptic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-cldr%2Fcldr_calendars_coptic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-cldr%2Fcldr_calendars_coptic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-cldr","download_url":"https://codeload.github.com/elixir-cldr/cldr_calendars_coptic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-cldr%2Fcldr_calendars_coptic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263587863,"owners_count":23484820,"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":[],"created_at":"2025-06-05T14:30:42.218Z","updated_at":"2025-07-04T17:30:32.555Z","avatar_url":"https://github.com/elixir-cldr.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coptic Calendar\n\nThis library implements the Coptic calendar.\n\nFrom [wikipedia](https://en.wikipedia.org/wiki/Coptic_calendar):\n\nThe Coptic calendar, also called the Alexandrian calendar, is a liturgical calendar used by the Coptic Orthodox Church and also used by the farming populace in Egypt. This calendar is based on the ancient Egyptian calendar. To avoid the calendar creep of the latter, a reform of the ancient Egyptian calendar was introduced at the time of Ptolemy III (Decree of Canopus, in 238 BC) which consisted of the intercalation of a sixth epagomenal day every fourth year. However, this reform was opposed by the Egyptian priests, and the reform was not adopted until 25 BC, when the Roman Emperor Augustus imposed the Decree upon Egypt as its official calendar (although it was unsynchronized with the newly introduced Julian calendar which had erroneously been intercalating leap days every third year due to a misinterpration of the leap year rule so as to apply inclusive counting).\n\nTo distinguish it from the Ancient Egyptian calendar, which remained in use by some astronomers until medieval times, this reformed calendar is known as the Coptic calendar. Its years and months coincide with those of the Ethiopian calendar but have different numbers and names.\n\n## Usage\n\n[ex_cldr_calendars_coptic](https://hex.pm/packages/ex_cldr_calenars_coptic) conforms to both the `Calendar` and `Cldr.Calendar` behaviours and therefore the functions in the `Date`, `DateTime`, `NaiveDateTime`, `Time` and `Calendar` functions are supported.\n\nFor Elixir versions up to and including 1.9, a date can be created by:\n```elixir\niex\u003e {:ok, date} = Date.new(1736, 3, 30, Cldr.Calendar.Coptic)\n{:ok, ~D[1736-03-30 Cldr.Calendar.Coptic]}\n```\nFor Elixir version 1.10 and later `Sigil_D` supports user-defined calendars:\n```\niex\u003e ~D[1736-03-30 Cldr.Calendar.Coptic]\n~D[1736-03-30 Cldr.Calendar.Coptic]\n```\n\n## Localization\n\n`ex_cldr_calendars_coptic` depends on [ex_cldr_calendars](https://hex.pm/packages/ex_cldr_calendars) which supports calendar localization. For full date and time formatting see [ex_cldr_dates_times](https://hex.pm/packages/ex_cldr_dates_times).\n\nBasic localization is executed by the `Cldr.Calendar.localize/3`. For example:\n\n```elixir\niex\u003e Cldr.Calendar.localize(date, :month, locale: \"en\")\n\"Hator\"\n\niex\u003e Cldr.Calendar.localize(date, :day_of_week, locale: \"en\")\n\"Tue\"\n\niex\u003e Cldr.Calendar.localize(date, :day_of_week, locale: \"ar-EG\")\n\"الثلاثاء\"\n\niex\u003e Cldr.Calendar.localize(date, :month, locale: \"ar-EG\")\n\"هاتور\"\n```\n\n## Relationship to other libraries\n\nThis library is part of the [CLDR](https://cldr.unicode.org)-based libraries for Elixir including:\n\n* [ex_cldr](https://hex.pm/packages/ex_cldr)\n* [ex_cldr_numbers](https://hex.pm/packages/ex_cldr_numbers)\n* [ex_cldr_dates_times](https://hex.pm/packages/ex_cldr_dates_times)\n* [ex_cldr_units](https://hex.pm/packages/ex_cldr_units)\n* [ex_cldr_lists](https://hex.pm/packages/ex_cldr_lists)\n* [ex_cldr_messages](https://hex.pm/packages/ex_cldr_messages)\n* [ex_cldr_calendars](https://hex.pm/packages/ex_cldr_calendars)\n* [ex_cldr_currencies](https://hex.pm/packages/ex_cldr_currencies)\n\n## Installation\n\nThe package can be installed by adding `ex_cldr_calendars_coptic` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ex_cldr_calendars_coptic, \"~\u003e 1.0\"}\n  ]\nend\n```\nDocumentation can be found at [https://hexdocs.pm/ex_cldr_calendars_coptic](https://hexdocs.pm/ex_cldr_calendars_coptic).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-cldr%2Fcldr_calendars_coptic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-cldr%2Fcldr_calendars_coptic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-cldr%2Fcldr_calendars_coptic/lists"}