Page MenuHomePhabricator

[Task] investigate implementations we could leverage for calendar conversion
Closed, DeclinedPublic

Description

Someone told me that https://en.wikipedia.org/wiki/Tz_database (tzdata, zoneinfo, IANA time zone, timezone, olson database) contains the necessary information about different Julian calendars so one can convert them to Gregorian. Yes this seems unlikely given that this would not fit into the normal structures for information on one time zone.

AFAIK https://en.wikipedia.org/wiki/ICalendar can handle Julian dates.

Investigate if either is true for historic dates and if we can avoid writing our own conversion code. Perhaps there is a useful implementation that can be reused.

The PHP conversion function cal_to_jd( CAL_JULIAN, $m, $d, $y ); only supports a Julian calendar starting on January 1st, none of the others.

Event Timeline

JanZerebecki raised the priority of this task from to Medium.
JanZerebecki updated the task description. (Show Details)
JanZerebecki added a project: Wikidata.
JanZerebecki subscribed.
JanZerebecki renamed this task from investigate using TZ DB for calendar conversion to investigate TZ DB / ICalendar for calendar conversion.Jul 24 2015, 11:21 PM
JanZerebecki updated the task description. (Show Details)
JanZerebecki set Security to None.
JanZerebecki renamed this task from investigate TZ DB / ICalendar for calendar conversion to investigate implementations we could leverage for calendar conversion.Jul 25 2015, 12:14 AM
JanZerebecki renamed this task from investigate implementations we could leverage for calendar conversion to [Task] investigate implementations we could leverage for calendar conversion.Sep 10 2015, 8:41 PM
JanZerebecki moved this task from incoming to needs discussion or investigation on the Wikidata board.