{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/globalize/issues/320","labels_url":"https://api.github.com/repos/jquery/globalize/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/jquery/globalize/issues/320/comments","events_url":"https://api.github.com/repos/jquery/globalize/issues/320/events","html_url":"https://github.com/jquery/globalize/issues/320","id":44282149,"number":320,"title":"Support for non-gregorian calendars","user":{"login":"rxaviers","id":967155,"avatar_url":"https://avatars.githubusercontent.com/u/967155?v=3","gravatar_id":"","url":"https://api.github.com/users/rxaviers","html_url":"https://github.com/rxaviers","followers_url":"https://api.github.com/users/rxaviers/followers","following_url":"https://api.github.com/users/rxaviers/following{/other_user}","gists_url":"https://api.github.com/users/rxaviers/gists{/gist_id}","starred_url":"https://api.github.com/users/rxaviers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxaviers/subscriptions","organizations_url":"https://api.github.com/users/rxaviers/orgs","repos_url":"https://api.github.com/users/rxaviers/repos","events_url":"https://api.github.com/users/rxaviers/events{/privacy}","received_events_url":"https://api.github.com/users/rxaviers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/globalize/labels/date%20module","name":"date module","color":"c7def8"},{"url":"https://api.github.com/repos/jquery/globalize/labels/help%20wanted","name":"help wanted","color":"d4c5f9"},{"url":"https://api.github.com/repos/jquery/globalize/labels/non-gregorian","name":"non-gregorian","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-09-29T11:15:25Z","updated_at":"2015-03-05T19:45:47Z","closed_at":null,"body":"CLDR has data for a variety of different calendars (listed in the table below). Globalize 0.x supported some non-gregorian calendars. But, Globalize 1.x hasn't migrated them yet (it supports the gregorian calendar only).\r\n\r\n| Calendar | Globalize 0.x | Globalize 1.x | ibm-js/ecma402 | dojo |\r\n| --- | --- | --- | --- | --- |\r\n| buddhist (Thai Buddhist calendar) | x | | x | x |\r\n| chinese (Traditional Chinese calendar) | | | | |\r\n| coptic (Coptic calendar) | | | | |\r\n| dangi (Traditional Korean calendar) | | | | |\r\n| ethioaa (Ethiopic calendar, Amete Alem (epoch approx. 5493 B.C.E)) | | | | |\r\n| ethiopic (Ethiopic calendar, Amete Mihret (epoch approx, 8 C.E.)) | | | | |\r\n| gregory (Gregorian calendar) | x | x | x | x |\r\n| hebrew (Traditional Hebrew calendar) | | | x | x |\r\n| indian (Indian calendar) | | | | |\r\n| islamic (Islamic calendar) | x | | x | x |\r\n| islamic-umalqura (Islamic calendar, Umm al-Qura) | x | | x | x |\r\n| islamic-tbla (Islamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - astronomical epoch)) | | | | |\r\n| islamic-civil (Islamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - civil epoch)) | | | x | |\r\n| islamic-rgsa (Islamic calendar, Saudi Arabia sighting) | | | | |\r\n| iso8601 (ISO calendar (Gregorian calendar using the ISO 8601 calendar week rules)) | | | | |\r\n| japanese (Japanese Imperial calendar) | | | x | |\r\n| persian (Persian calendar) | | | | x |\r\n| roc (Republic of China calendar) | | | x | |\r\n| islamicc (Civil (algorithmic) Arabic calendar) | | | | |\r\n\r\nWe haven't been requested so far to support any non-gregorian calendar. Therefore, our priority is (1) first to support the previously supported calendars on 0.x, (2) then to support any other non-gregorian calendar.\r\n\r\nReferences:\r\n- [UTS#35 Dates](http://www.unicode.org/reports/tr35/tr35-dates.html).\r\n- [Globalize 0.x](https://github.com/jquery/globalize/blob/79ae658b842f75f58199d6e9074e01f7ce207468/lib/cultures/globalize.cultures.js).\r\n- [ibm-js/ecma402](https://github.com/ibm-js/ecma402/tree/master/calendars).\r\n- [dojo](https://github.com/dojo/dojox/tree/master/date).\r\n\r\nFollow the calendar preference per territory: (use 001 as a default for countries not listed there)\r\n\r\n```\r\n\"calendarPreferenceData\": {\r\n  \"001\": \"gregorian\",\r\n  \"AE\": \"gregorian islamic-umalqura islamic islamic-civil islamic-tbla\",\r\n  \"AF\": \"persian gregorian islamic islamic-civil islamic-tbla\",\r\n  \"BH\": \"gregorian islamic-umalqura islamic islamic-civil islamic-tbla\",\r\n  \"CN\": \"gregorian chinese\",\r\n  \"CX\": \"gregorian chinese\",\r\n  \"DJ\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"DZ\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"EG\": \"gregorian coptic islamic islamic-civil islamic-tbla\",\r\n  \"EH\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"ER\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"ET\": \"gregorian ethiopic\",\r\n  \"HK\": \"gregorian chinese\",\r\n  \"IL\": \"gregorian hebrew islamic islamic-civil islamic-tbla\",\r\n  \"IN\": \"gregorian indian\",\r\n  \"IQ\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"IR\": \"persian gregorian islamic islamic-civil islamic-tbla\",\r\n  \"JO\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"JP\": \"gregorian japanese\",\r\n  \"KM\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"KR\": \"gregorian dangi\",\r\n  \"KW\": \"gregorian islamic-umalqura islamic islamic-civil islamic-tbla\",\r\n  \"LB\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"LY\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"MA\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"MO\": \"gregorian chinese\",\r\n  \"MR\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"OM\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"PS\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"QA\": \"gregorian islamic-umalqura islamic islamic-civil islamic-tbla\",\r\n  \"SA\": \"gregorian islamic-umalqura islamic islamic-rgsa\",\r\n  \"SD\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"SG\": \"gregorian chinese\",\r\n  \"SY\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"TD\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"TH\": \"buddhist gregorian\",\r\n  \"TN\": \"gregorian islamic islamic-civil islamic-tbla\",\r\n  \"TW\": \"gregorian roc chinese\",\r\n  \"YE\": \"gregorian islamic islamic-civil islamic-tbla\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jquery/globalize/issues/comments/77437066","html_url":"https://github.com/jquery/globalize/issues/320#issuecomment-77437066","issue_url":"https://api.github.com/repos/jquery/globalize/issues/320","id":77437066,"user":{"login":"srk12345","id":11309256,"avatar_url":"https://avatars.githubusercontent.com/u/11309256?v=3","gravatar_id":"","url":"https://api.github.com/users/srk12345","html_url":"https://github.com/srk12345","followers_url":"https://api.github.com/users/srk12345/followers","following_url":"https://api.github.com/users/srk12345/following{/other_user}","gists_url":"https://api.github.com/users/srk12345/gists{/gist_id}","starred_url":"https://api.github.com/users/srk12345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srk12345/subscriptions","organizations_url":"https://api.github.com/users/srk12345/orgs","repos_url":"https://api.github.com/users/srk12345/repos","events_url":"https://api.github.com/users/srk12345/events{/privacy}","received_events_url":"https://api.github.com/users/srk12345/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T19:45:47Z","updated_at":"2015-03-05T19:45:47Z","body":"after going through the problem i understood that u are not using 0.x\nanymore and need to support other calendars on 1.x so we have to code rest\nof the calendars for 1.x\n\nOn Fri, Mar 6, 2015 at 12:26 AM, Manraj Singh <notifications@github.com>\nwrote:\n\n> Okay sir. Following #393 <https://github.com/jquery/globalize/issues/393>.\n> Thank you.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jquery/globalize/issues/320#issuecomment-77426305>.\n>\n"}}