{"id":18676290,"url":"https://github.com/davoudarsalani/action-jdate","last_synced_at":"2026-04-10T22:43:43.346Z","repository":{"id":107906664,"uuid":"441238972","full_name":"davoudarsalani/action-jdate","owner":"davoudarsalani","description":"Download/install the latest version of jdate","archived":false,"fork":false,"pushed_at":"2025-04-12T14:17:48.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T17:43:21.835Z","etag":null,"topics":["alpine","calendar","docker","gnu","jalali","jcal","jdate","jdatetime","module","nongnu","persiantools","python","shamsi"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/davoudarsalani.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,"zenodo":null}},"created_at":"2021-12-23T16:36:22.000Z","updated_at":"2025-04-12T14:17:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee72aaca-3471-426c-9cab-22cca56a72ce","html_url":"https://github.com/davoudarsalani/action-jdate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davoudarsalani/action-jdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davoudarsalani%2Faction-jdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davoudarsalani%2Faction-jdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davoudarsalani%2Faction-jdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davoudarsalani%2Faction-jdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davoudarsalani","download_url":"https://codeload.github.com/davoudarsalani/action-jdate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davoudarsalani%2Faction-jdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31662169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"ssl_error","status_checked_at":"2026-04-10T17:19:13.364Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alpine","calendar","docker","gnu","jalali","jcal","jdate","jdatetime","module","nongnu","persiantools","python","shamsi"],"created_at":"2024-11-07T09:28:40.417Z","updated_at":"2026-04-10T22:43:43.314Z","avatar_url":"https://github.com/davoudarsalani.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Download/install the latest version of jdate\n\u003cdiv align='center'\u003e\n\u003cimg alt='last-commit' src='https://img.shields.io/github/last-commit/davoudarsalani/action-jdate?\u0026labelColor=black\u0026color=grey\u0026style=flat'\u003e\n\u003cimg alt='commit-activity' src='https://img.shields.io/github/commit-activity/m/davoudarsalani/action-jdate?\u0026labelColor=black\u0026color=grey\u0026style=flat'\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\nJalali Calendar, developed by Ashkan Ghassemi, is:\n\u003e ... a small and portable free software library to manipulate date and time in Jalali calendar system.\n\u003cbr\u003e\n\n---\n```yml\n- name: Installing jdate\n  uses: davoudarsalani/action-jdate@master\n  with:\n    source: 'docker-jdate'  ## default\n```\nThere are ten options for `source`:\n* Use docker image\n  * `docker-khayyam` will pull `khayyam` docker image/repository (about 61.3MB in size) containing `khayyam` python module on Alpine Linux\n  * `docker-persiantools` will pull `persiantools` docker image/repository (about 60.8MB in size) containing `persiantools` python module on Alpine Linux\n  * `docker-jdatetime` will pull `jdatetime` docker image/repository (about 59.8MB in size) containing `jdatetime` python module on Alpine Linux\n  * `docker-jdate` will pull `jdate` docker image/repository (about 8.22MB in size) containing `jdate` on Alpine Linux\n* Download tar.gz file\n  * `askapache` will download from __askapache.com__ \n  * `gnu` will download from __gnu.org__\n  * `nongnu` will download from __nongnu.org__\n* Clone git repository\n  * `clone-github` will clone from __github.com__\n  * `clone-gnu` will clone from __gnu.org__\n  * `clone-nongnu` will clone from __nongnu.org__\n\u003cbr\u003e\n\nFor `docker-khayyam`, `docker-persiantools` or `docker-jdatetime` set as source, you may use either of the following commands respectively to set date/time:\n```yml\n## docker-khayyam\nrun: date_time=\"$(docker run --rm -t davoudarsalani/khayyam \\\n       python -c \"import khayyam; print(khayyam.JalaliDatetime.now().strftime('%Y-%m-%d %H:%M:%S %A'))\")\"\n\n## docker-persiantools\nrun: date_time=\"$(docker run --rm -t davoudarsalani/persiantools \\\n       python -c \"from persiantools.jdatetime import JalaliDateTime; print(JalaliDateTime.now().strftime('%Y-%m-%d %H:%M:%S %A'))\")\"\n\n## docker-jdatetime\nrun: date_time=\"$(docker run --rm -t davoudarsalani/jdatetime \\\n       python -c \"import jdatetime; print(jdatetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S %A'))\")\"\n```\n\u003e Note: These three options, as mentioned earlier, use respective python modules.\u003cbr\u003e\n\u003e The documents state that we can use the same format used for the `datetime` module:\n\u003e\n\u003e\u003e [khayyam](http://khayyam.dobisel.com/): The package’s API is considered to be exactly the same as the datetime module, so if you are familiar with the datetime, you can read the Migration from python’s builtin datetime.\n\u003e\n\u003e\u003e [persiantools](https://pypi.org/project/persiantools/): Jalali (Shamsi) date and datetime (based on python datetime's module)\n\u003e\n\u003e\u003e [jdatetime](https://pypi.org/project/jdatetime/): This module exactly follows Python Standard datetime module’s methods\n\u003e\n\u003cbr\u003e\n\nAlternatively, if `docker-jdate` is set for source, you can use `jdate` command to get date/time:\n```yml\n- name: Getting date/time\n  shell: bash\n  run: date_time=\"$(docker run --rm -t davoudarsalani/jdate jdate '+%Y-%m-%d %H:%M:%S %A')\"\n```\nSimilarly, if the other options are chosen, you can use `jdate` command:\n```yml\nrun: date_time=\"$(jdate '+%Y-%m-%d %H:%M:%S %A')\"\n```\n\u003cbr\u003e\n\n\u003e Note: `jdate` and `date` share the same format.\n\u003cbr\u003e\n\n---\n* Jalali Calendar homepage: [gnu.org](https://www.gnu.org/savannah-checkouts/non-gnu/jcal/) and [nongnu.org](http://www.nongnu.org/jcal/) \n* To get more versions/tags of `khayyam`/`persiantools`/`jdatetime`/`jdate` docker images/repositories, please visit [docker.com](https://hub.docker.com/u/davoudarsalani)\n* To install `khayyam` python module, please visit [pypi.org](https://pypi.org/project/Khayyam/) or [dobisel.com](http://khayyam.dobisel.com/)\n* To install `persiantools` python module, please visit [pypi.org](https://pypi.org/project/persiantools/) or [github.com](https://github.com/majiidd/persiantools)\n* To install `jdatetime` python module, please visit [pypi.org](https://pypi.org/project/jdatetime/) or [github](https://github.com/slashmili/python-jalali)\n* To download `jcal` in tar.gz, please visit [askapache.com](http://nongnu.askapache.com/jcal/), [gnu.org](http://download-mirror.savannah.gnu.org/releases/jcal/) or [nongnu.org](http://download.savannah.nongnu.org/releases/jcal/)\n* To clone `jcal` repository, please visit [github.com](https://github.com/ashkang/jcal), [gnu.org](http://git.savannah.gnu.org/cgit/jcal.git) or [nongnu.org](http://savannah.nongnu.org/git/?group=jcal)\n* For instructions on how to manually download and install `jcal`/`jdate` locally, please visit [wiki.ubuntu.ir](https://wiki.ubuntu.ir/wiki/Jcal) or [wiki.ubuntu.ir](https://wiki.ubuntu.ir/index.php?title=Jcal\u0026oldid=1300)\n* For instructions on how to use `jcal`/`jdate`, please visit [nongnu.org](http://www.nongnu.org/jcal/jdate.html) or [mankier.com](https://www.mankier.com/1/jdate)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavoudarsalani%2Faction-jdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavoudarsalani%2Faction-jdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavoudarsalani%2Faction-jdate/lists"}