Page MenuHomePhabricator

support for additional calendar models
Open, Needs TriagePublic

Description

Wikidata supports Julian and Gregorian calendar models. People are asking for support for additional calendar models. Subtasks of this one are tracking requests for individual calendar models.

Event Timeline

I am working in adding Hijri (Islamic) calendar. I think it is better to split calendar specified functions of Gregorian and Julian calendars to separated classes and create a common interface for them. Then create a new calendar classes.

As I see, some code of validate dates are in data-values package, so we need another calendar class there.

image.png (196×697 px, 14 KB)

I have added Hijri calendar, but I prefer a unique behavior for all calenders, we need a dictionary for calendar strings and limits and two functions: a convertor to Gregorian and a validator.