Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P Plasma Add-ons
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • Plasma Add-ons
  • Merge requests
  • !317

alternatecalendar: add support for Islamic Calendar (Astronomical and Umm al-Qura)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Fushan Wen requested to merge work/fuf/islamic into master Jan 11, 2023
  • Overview 18
  • Commits 1
  • Pipelines 10
  • Changes 6

There are different kinds of Islamic calendars, and Qt only supports "Islamic Civil Calendar". This adds support for another two Islamic calendars.

From https://developer.android.com/reference/android/icu/util/IslamicCalendar

The Islamic religious calendar and Saudi Arabia's Umm al-Qura calendar, however, are based on the observation of the crescent moon. It is thus affected by the position at which the observations are made, seasonal variations in the time of sunset, the eccentricities of the moon's orbit, and even the weather at the observation site. This makes it impossible to calculate in advance, and it causes the start of a month in the religious calendar to differ from the civil calendar by up to three days.

Using astronomical calculations for the position of the sun and moon, the moon's illumination, and other factors, it is possible to determine the start of a lunar month with a fairly high degree of certainty. However, these calculations are extremely complicated and thus slow, so most algorithms, including the one used here, are only approximations of the true astronomical calculations. At present, the approximations used in this class are fairly simplistic; they will be improved in later versions of the code.

Like the Islamic religious calendar, Umm al-Qura is also based on the sighting method of the crescent moon but is standardized by Saudi Arabia.

See also: https://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types

FEATURE: 72418 FIXED-IN: 6

  • Support Umm Al-Qura
  • Improve Islamic Civil/Persian calendar
Language is Arabic Language is not Arabic
图片 图片

Three kinds of Islamic calendars are supported: 图片

Edited Jan 14, 2023 by Fushan Wen
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/fuf/islamic