{"id":13507763,"url":"https://github.com/jalaali/elixir-jalaali","last_synced_at":"2025-10-21T15:29:38.385Z","repository":{"id":45196390,"uuid":"76784811","full_name":"jalaali/elixir-jalaali","owner":"jalaali","description":"Jalaali (also known as Jalali, Persian, Khorshidi, Shamsi) calendar implementation in Elixir.","archived":false,"fork":false,"pushed_at":"2023-09-11T20:20:39.000Z","size":64,"stargazers_count":22,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T21:43:16.793Z","etag":null,"topics":["calendar","convert-dates","date","datetime","elixir","jalaali","khorshidi","shamsi"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/jalaali","language":"Elixir","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/jalaali.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}},"created_at":"2016-12-18T13:31:37.000Z","updated_at":"2024-09-19T11:50:34.000Z","dependencies_parsed_at":"2024-01-31T07:02:18.147Z","dependency_job_id":"97f92fc3-b3ac-4ed7-8930-23b21bd700e3","html_url":"https://github.com/jalaali/elixir-jalaali","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalaali%2Felixir-jalaali","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalaali%2Felixir-jalaali/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalaali%2Felixir-jalaali/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalaali%2Felixir-jalaali/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jalaali","download_url":"https://codeload.github.com/jalaali/elixir-jalaali/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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":["calendar","convert-dates","date","datetime","elixir","jalaali","khorshidi","shamsi"],"created_at":"2024-08-01T02:00:38.733Z","updated_at":"2025-10-21T15:29:33.346Z","avatar_url":"https://github.com/jalaali.png","language":"Elixir","funding_links":[],"categories":["Date and Time"],"sub_categories":[],"readme":"# Elixir Jalaali calendar\n![Build Status](https://github.com/jalaali/elixir-jalaali/actions/workflows/ci.yaml/badge.svg)\n[![Hex.pm](https://img.shields.io/hexpm/v/jalaali.svg)](https://hex.pm/packages/jalaali)\n[![GitHub license](https://img.shields.io/badge/license-MIT-green.svg)](https://raw.githubusercontent.com/jalaali/elixir-jalaali/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/jalaali/elixir-jalaali.svg)](https://github.com/jalaali/elixir-jalaali/issues)\n\n\nElixir implementation of [jalaali.js](https://github.com/jalaali/jalaali-js) which contains a Calendar implementation for jalaali and some functions for converting Jalaali and Gregorian calendar systems to each other.\n\n## Installation\n\nYou can install `jalaali` by Addding it to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:jalaali, \"~\u003e 0.4\"}\n  ]\nend\n```\n\n## Usage\n\nAfter installing jalaali package. you can create Dates/DateTimes in jalaali or convert\nDates/DateTimes form other calendars back an forth.\n\n### How to use\n\n  - Creating new Date\n```elixir\n  Date.new(1396, 6, 30, Jalaali.Calendar)\n  {:ok, %Date{calendar: Jalaali.Calendar, day: 30, month: 6, year: 1396}}\n```\n\n  - Converting a DateTime to Jalaali\n```elixir\n  datetime_in_any_calendar = DateTime.utc_now(Calendar.ISO)\n  {:ok, jalaali_datetime} = DateTime.convert(datetime_in_any_calendar, Jalaali.Calendar)\n```\n\n  - Converting a DateTime from Jalaali\n```elixir\n  jalaali_datetime = DateTime.utc_now(Jalaali.Calendar)\n  {:ok, iso_datetime} = DateTime.convert(jalaali_datetime, Calendar.ISO)\n```\n\n  - Converting a Date to Jalaali\n```elixir\n  date_in_any_calendar = Date.new(2017, 1, 1, Calendar.ISO)\n  {:ok, jalaali_date} = Date.convert(date_in_any_calendar, Jalaali.Calendar)\n```\n\n  - Converting a Date from Jalaali\n```elixir\n  {:ok, jalaali_date} = Date.new(1396, 6, 30, Jalaali.Calendar)\n  {:ok, iso_date} = Date.convert(jalaali_date, Calendar.ISO)\n```\n\n  Thats super easy. :)\n\n## License\n\nThis project is license under MIT.\n\nFor more information please check [LICENSE](https://github.com/jalaali/elixir-jalaali/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalaali%2Felixir-jalaali","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjalaali%2Felixir-jalaali","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalaali%2Felixir-jalaali/lists"}