{"id":36427206,"url":"https://github.com/eloyzone/jalali-calendar","last_synced_at":"2026-01-11T18:01:38.725Z","repository":{"id":48564123,"uuid":"136441649","full_name":"eloyzone/jalali-calendar","owner":"eloyzone","description":"A java Library that converts Gregorian to Jalali (or Jalali to Gregorian)","archived":false,"fork":false,"pushed_at":"2021-07-20T08:32:27.000Z","size":41,"stargazers_count":38,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T20:12:08.521Z","etag":null,"topics":["converts-gregorian","gregorian","jalali","jalali-calendar","jalalidate","java","java-library"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eloyzone.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}},"created_at":"2018-06-07T07:49:32.000Z","updated_at":"2025-03-18T06:20:09.000Z","dependencies_parsed_at":"2022-09-04T10:52:57.403Z","dependency_job_id":null,"html_url":"https://github.com/eloyzone/jalali-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eloyzone/jalali-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloyzone%2Fjalali-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloyzone%2Fjalali-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloyzone%2Fjalali-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloyzone%2Fjalali-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eloyzone","download_url":"https://codeload.github.com/eloyzone/jalali-calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eloyzone%2Fjalali-calendar/sbom","scorecard":{"id":373766,"data":{"date":"2025-08-11","repo":{"name":"github.com/eloyzone/jalali-calendar","commit":"2ca67d8a9addbdc06b872d8e0a4f60f3c679cf37"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T13:39:25.653Z","repository_id":48564123,"created_at":"2025-08-18T13:39:25.653Z","updated_at":"2025-08-18T13:39:25.653Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28316986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["converts-gregorian","gregorian","jalali","jalali-calendar","jalalidate","java","java-library"],"created_at":"2026-01-11T18:01:38.643Z","updated_at":"2026-01-11T18:01:38.714Z","avatar_url":"https://github.com/eloyzone.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.eloyzone/jalali-calendar/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.eloyzone/jalali-calendar)\n\n# jalali-calendar\nA java Library that converts Gregorian to Jalali (or Jalali to Gregorian)\nFor Gregorian date, it uses Java8's date and for Jalali date has its own codes which are inspired from Java8.\n\n\n# How can I use jalali-calendar?\nYou can download source code directly to your existing projects and then use it or you can download it from maven or other repositories.\n\n## Maven\n### How to Include In Maven Project\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.eloyzone\u003c/groupId\u003e\n    \u003cartifactId\u003ejalali-calendar\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Some Basic Codes:\n```java\n\n// Create an object of DateConverter, its the main class that converts calendars\nDateConverter dateConverter = new DateConverter();\n\n// Convert Jalali date to Gregorian\nLocalDate localdate1 = dateConverter.jalaliToGregorian(1370, 11, 28);\nLocalDate localdate2 = dateConverter.jalaliToGregorian(1386, MonthPersian.ESFAND, 29);\n\n// Convert Gregorian date to Jalali\nJalaliDate jalaliDate1 = dateConverter.gregorianToJalali(1992, 2, 17);\nJalaliDate jalaliDate2 = dateConverter.gregorianToJalali(2019, 3, 20);\n\n// checking for leapyer of Jalali Date\nboolean leapyer1 = new JalaliDate(1370, 11, 28).isLeapYear());\nboolean leapyer2 = dateConverter.gregorianToJalali(1992, 2, 17).isLeapYear();\n\n// Day of week\nString dayOfWeek1 = new JalaliDate(1370, 11, 28).getDayOfWeek().getStringInPersian(); // Doshanbe\nString dayOfWeek2 = new JalaliDate(1370, 11, 28).getDayOfWeek().getStringInEnglish(); // دوشنبه\n```\n\n## Date Formatter:\nFor Gregorian date no formatter is provided by this lib as Java8 has got a good formatter but for JalaliDate You can use `JalaliDateFormatter` class like below codes\nThe Jalai's formatter not only provide English but also Persian. Its default form is English.\n\n```java\nDateConverter dateConverter = new DateConverter();\nJalaliDate jalaliDate = dateConverter.gregorianToJalali(1992, Month.FEBRUARY, 17);\nString result = jalaliDate.format(new JalaliDateFormatter(\"yyyy/mm/dd\", JalaliDateFormatter.FORMAT_IN_PERSIAN);\n// result will be: ١٣٧٠/١١/٢٨\n\nString result2 = jalaliDate.format(new JalaliDateFormatter(\"yyyy- M dd\", JalaliDateFormatter.FORMAT_IN_PERSIAN);\n// result2 will be: ٢٨ بهمن -١٣٧٠\n```\n\nFor more options it's highly recomended to see unit tests of this library, it's covered most possible options and can be good guide for you.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feloyzone%2Fjalali-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feloyzone%2Fjalali-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feloyzone%2Fjalali-calendar/lists"}