{"id":13612220,"url":"https://github.com/fikr4n/iclib-java","last_synced_at":"2025-04-13T11:31:48.581Z","repository":{"id":33781320,"uuid":"37442449","full_name":"fikr4n/iclib-java","owner":"fikr4n","description":"Islamic Calculation Library (ICLib) contains calculations for prayer (salat) times, qibla direction, and Hijri conversion","archived":false,"fork":false,"pushed_at":"2017-03-26T05:39:42.000Z","size":88,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-07T20:41:51.908Z","etag":null,"topics":["hijri","islam","java","prayer","qibla","salat"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fikr4n.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":"2015-06-15T03:59:49.000Z","updated_at":"2022-09-02T14:04:24.000Z","dependencies_parsed_at":"2022-07-13T14:32:27.214Z","dependency_job_id":null,"html_url":"https://github.com/fikr4n/iclib-java","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikr4n%2Ficlib-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikr4n%2Ficlib-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikr4n%2Ficlib-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fikr4n%2Ficlib-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fikr4n","download_url":"https://codeload.github.com/fikr4n/iclib-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705699,"owners_count":21148578,"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":["hijri","islam","java","prayer","qibla","salat"],"created_at":"2024-08-01T20:00:25.115Z","updated_at":"2025-04-13T11:31:48.194Z","avatar_url":"https://github.com/fikr4n.png","language":"Java","funding_links":[],"categories":["Open Source Projects"],"sub_categories":["APIs \u0026 Libraries"],"readme":"# ICLib Java\nIslamic Calculation Library (ICLib) contains calculations/algorithms needed specifically by muslims and people in muslim countries, such as salat (prayer) times, qibla direction, and Hijri conversion.\n\nThis library is written in Java and is a porting of the [Python](https://github.com/fikr4n/iclib-python) version. More information about the calculation method you should choose, etc, are available in the README file there.\n\n**Notes on Hijri conversion**\n\nAny Hijri conversion including Umm al-Qura is not used as reference for ibadah e.g. beginning of saum (fasting), Eid al-Fitr, and Eid al-Adha.\n\n## Usage example\n\nLatitude and longitude are in degrees, positive values for north and east respectively, negative values for south and west respectively. More examples are available in `example` directory.\n\n```java\n\tDateFormat format = new SimpleDateFormat(\"HH:mm\");\n\t// optional: set timezone to make sure formatting is correct\n\t// format.setTimeZone(timeZone)\n\t\n\tTimes times = new TimeCalculator()\n\t\t// today\n\t\t.date(new GregorianCalendar())\n\t\t// latitude, longitude, altitude, timezone\n\t\t.location(-6.38043079, 106.85337984, 0, +7)\n\t\t// fajr and isha rule [, asr rule, time adjustment]\n\t\t.method(AngleRule.EGYPT) // .method(AngleRule.EGYPT, false, TimeAdjustment.ZEROS)\n\t\t.calculate();\n\tfor (Date time : times) // as java.util.Date\n\t\tprint(format.format(time));\n\t\n\t// other styles\n\tprint(times.getZuhr()); // as java.util.Date\n\tprint(times.getTime(Times.ASR)); // as java.util.Date\n\tprint(times.getHms(Times.MAGHRIB)); // simply as Hms (hour-minute-second)\n```\n\n```java\n\t// latitude and longitude of the user\n\tdouble lat = -6.169777778, lng = 106.8307333;\n\tprint(Qibla.findDirection(lat, lng)); // as double (in degrees)\n\tprint(Qibla.findDirectionDms(lat, lng)); // as Dms (degree-minute-second)\n```\n\n```java\n\t/* By Java convention, month is 0-based and day-of-month is 1-based */\n\t// year, month, day\n\tprint(UmmQura.toGregorian(1436, 0, 1)); // as java.util.GregorianCalendar\n\tprint(UmmQura.fromGregorian(new GregorianCalendar(2015, 0, 1))); // as HijriDate\n```\n\n_We need your dua and support_\n\n**Salam and have fun!**\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffikr4n%2Ficlib-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffikr4n%2Ficlib-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffikr4n%2Ficlib-java/lists"}