2 * Globalize Culture ar-JO
4 * http://github.com/jquery/globalize
6 * Copyright Software Freedom Conservancy, Inc.
7 * Dual licensed under the MIT or GPL Version 2 licenses.
8 * http://jquery.org/license
10 * This file was generated by the Globalize Culture Generator
11 * Translation: bugs found in this file need to be fixed in the generator
14 (function( window, undefined ) {
18 if ( typeof require !== "undefined"
19 && typeof exports !== "undefined"
20 && typeof module !== "undefined" ) {
22 Globalize = require( "globalize" );
25 Globalize = window.Globalize;
28 Globalize.addCultureInfo( "ar-JO", "default", {
30 englishName: "Arabic (Jordan)",
31 nativeName: "العربية (الأردن)",
38 negativeInfinity: "-لا نهاية",
39 positiveInfinity: "+لا نهاية",
44 pattern: ["$n-","$ n"],
53 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
54 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
55 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
58 names: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],
59 namesAbbr: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""]
68 f: "dd MMMM, yyyy hh:mm tt",
69 F: "dd MMMM, yyyy hh:mm:ss tt",
77 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
78 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
79 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
82 names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
83 namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
87 eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
88 twoDigitYearMax: 1451,
94 f: "dd/MMMM/yyyy hh:mm tt",
95 F: "dd/MMMM/yyyy hh:mm:ss tt",
100 // MonthLengthFlags, Gregorian Date
101 [746, -2198707200000],
102 [1769, -2168121600000],
103 [3794, -2137449600000],
104 [3748, -2106777600000],
105 [3402, -2076192000000],
106 [2710, -2045606400000],
107 [1334, -2015020800000],
108 [2741, -1984435200000],
109 [3498, -1953763200000],
110 [2980, -1923091200000],
111 [2889, -1892505600000],
112 [2707, -1861920000000],
113 [1323, -1831334400000],
114 [2647, -1800748800000],
115 [1206, -1770076800000],
116 [2741, -1739491200000],
117 [1450, -1708819200000],
118 [3413, -1678233600000],
119 [3370, -1647561600000],
120 [2646, -1616976000000],
121 [1198, -1586390400000],
122 [2397, -1555804800000],
123 [748, -1525132800000],
124 [1749, -1494547200000],
125 [1706, -1463875200000],
126 [1365, -1433289600000],
127 [1195, -1402704000000],
128 [2395, -1372118400000],
129 [698, -1341446400000],
130 [1397, -1310860800000],
131 [2994, -1280188800000],
132 [1892, -1249516800000],
133 [1865, -1218931200000],
134 [1621, -1188345600000],
135 [683, -1157760000000],
136 [1371, -1127174400000],
137 [2778, -1096502400000],
138 [1748, -1065830400000],
139 [3785, -1035244800000],
140 [3474, -1004572800000],
141 [3365, -973987200000],
142 [2637, -943401600000],
143 [685, -912816000000],
144 [1389, -882230400000],
145 [2922, -851558400000],
146 [2898, -820886400000],
147 [2725, -790300800000],
148 [2635, -759715200000],
149 [1175, -729129600000],
150 [2359, -698544000000],
151 [694, -667872000000],
152 [1397, -637286400000],
153 [3434, -606614400000],
154 [3410, -575942400000],
155 [2710, -545356800000],
156 [2349, -514771200000],
157 [605, -484185600000],
158 [1245, -453600000000],
159 [2778, -422928000000],
160 [1492, -392256000000],
161 [3497, -361670400000],
162 [3410, -330998400000],
163 [2730, -300412800000],
164 [1238, -269827200000],
165 [2486, -239241600000],
166 [884, -208569600000],
167 [1897, -177984000000],
168 [1874, -147312000000],
169 [1701, -116726400000],
170 [1355, -86140800000],
171 [2731, -55555200000],
172 [1370, -24883200000],
177 [2709, 128217600000],
178 [1325, 158803200000],
179 [2653, 189388800000],
180 [1370, 220060800000],
181 [2773, 250646400000],
182 [1706, 281318400000],
183 [1685, 311904000000],
184 [1323, 342489600000],
185 [2647, 373075200000],
186 [1198, 403747200000],
187 [2422, 434332800000],
188 [1388, 465004800000],
189 [2901, 495590400000],
190 [2730, 526262400000],
191 [2645, 556848000000],
192 [1197, 587433600000],
193 [2397, 618019200000],
195 [1497, 679276800000],
196 [3506, 709948800000],
197 [2980, 740620800000],
198 [2890, 771206400000],
199 [2645, 801792000000],
201 [1397, 862963200000],
202 [2922, 893635200000],
203 [3026, 924307200000],
204 [3012, 954979200000],
205 [2953, 985564800000],
206 [2709, 1016150400000],
207 [1325, 1046736000000],
208 [1453, 1077321600000],
209 [2922, 1107993600000],
210 [1748, 1138665600000],
211 [3529, 1169251200000],
212 [3474, 1199923200000],
213 [2726, 1230508800000],
214 [2390, 1261094400000],
215 [686, 1291680000000],
216 [1389, 1322265600000],
217 [874, 1352937600000],
218 [2901, 1383523200000],
219 [2730, 1414195200000],
220 [2381, 1444780800000],
221 [1181, 1475366400000],
222 [2397, 1505952000000],
223 [698, 1536624000000],
224 [1461, 1567209600000],
225 [1450, 1597881600000],
226 [3413, 1628467200000],
227 [2714, 1659139200000],
228 [2350, 1689724800000],
229 [622, 1720310400000],
230 [1373, 1750896000000],
231 [2778, 1781568000000],
232 [1748, 1812240000000],
233 [1701, 1842825600000],
236 minDate: -2198707200000,
237 maxDate: 1873411199999,
238 toGregorian: function(hyear, hmonth, hday) {
240 gyear = hyear - 1318;
241 if (gyear < 0 || gyear >= this._yearInfo.length) return null;
242 var info = this._yearInfo[gyear],
243 gdate = new Date(info[1]),
244 monthLength = info[0];
245 // Date's ticks in javascript are always from the GMT time,
246 // but we are interested in the gregorian date in the same timezone,
247 // not what the gregorian date was at GMT time, so we adjust for the offset.
248 gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
249 for (var i = 0; i < hmonth; i++) {
250 days += 29 + (monthLength & 1);
251 monthLength = monthLength >> 1;
253 gdate.setDate(gdate.getDate() + days);
256 fromGregorian: function(gdate) {
257 // Date's ticks in javascript are always from the GMT time,
258 // but we are interested in the hijri date in the same timezone,
259 // not what the hijri date was at GMT time, so we adjust for the offset.
260 var ticks = gdate - gdate.getTimezoneOffset() * 60000;
261 if (ticks < this.minDate || ticks > this.maxDate) return null;
264 // find the earliest gregorian date in the array that is greater than or equal to the given date
265 while (ticks > this._yearInfo[++hyear][1]) { }
266 if (ticks !== this._yearInfo[hyear][1]) {
269 var info = this._yearInfo[hyear],
270 // how many days has it been since the date we found in the array?
271 // 86400000 = ticks per day
272 days = Math.floor((ticks - info[1]) / 86400000),
273 monthLength = info[0];
274 hyear += 1318; // the Nth array entry corresponds to hijri year 1318+N
275 // now increment day/month based on the total days, considering
276 // how many days are in each month. We cannot run past the year
277 // mark since we would have found a different array entry in that case.
278 var daysInMonth = 29 + (monthLength & 1);
279 while (days >= daysInMonth) {
281 monthLength = monthLength >> 1;
282 daysInMonth = 29 + (monthLength & 1);
285 // remaining days is less than is in one month, thus is the day of the month we landed on
286 // hmonth-1 because in javascript months are zero based, stay consistent with that.
287 return [hyear, hmonth - 1, days + 1];
295 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
296 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
297 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
300 names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
301 namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
305 eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
306 twoDigitYearMax: 1451,
312 f: "dd/MM/yyyy hh:mm tt",
313 F: "dd/MM/yyyy hh:mm:ss tt",
317 // Adapted to Script from System.Globalization.HijriCalendar
318 ticks1970: 62135596800000,
319 // number of days leading up to each month
320 monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355],
321 minDate: -42521673600000,
322 maxDate: 253402300799999,
323 // The number of days to add or subtract from the calendar to accommodate the variances
324 // in the start and the end of Ramadan and to accommodate the date difference between
325 // countries/regions. May be dynamically adjusted based on user preference, but should
326 // remain in the range of -2 to 2, inclusive.
328 toGregorian: function(hyear, hmonth, hday) {
329 var daysSinceJan0101 = this.daysToYear(hyear) + this.monthDays[hmonth] + hday - 1 - this.hijriAdjustment;
330 // 86400000 = ticks per day
331 var gdate = new Date(daysSinceJan0101 * 86400000 - this.ticks1970);
332 // adjust for timezone, because we are interested in the gregorian date for the same timezone
333 // but ticks in javascript is always from GMT, unlike the server were ticks counts from the base
334 // date in the current timezone.
335 gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
338 fromGregorian: function(gdate) {
339 if ((gdate < this.minDate) || (gdate > this.maxDate)) return null;
340 var ticks = this.ticks1970 + (gdate-0) - gdate.getTimezoneOffset() * 60000,
341 daysSinceJan0101 = Math.floor(ticks / 86400000) + 1 + this.hijriAdjustment;
342 // very particular formula determined by someone smart, adapted from the server-side implementation.
343 // it approximates the hijri year.
344 var hday, hmonth, hyear = Math.floor(((daysSinceJan0101 - 227013) * 30) / 10631) + 1,
345 absDays = this.daysToYear(hyear),
346 daysInYear = this.isLeapYear(hyear) ? 355 : 354;
347 // hyear is just approximate, it may need adjustment up or down by 1.
348 if (daysSinceJan0101 < absDays) {
350 absDays -= daysInYear;
352 else if (daysSinceJan0101 === absDays) {
354 absDays = this.daysToYear(hyear);
357 if (daysSinceJan0101 > (absDays + daysInYear)) {
358 absDays += daysInYear;
362 // determine month by looking at how many days into the hyear we are
363 // monthDays contains the number of days up to each month.
365 var daysIntoYear = daysSinceJan0101 - absDays;
366 while (hmonth <= 11 && daysIntoYear > this.monthDays[hmonth]) {
370 hday = daysIntoYear - this.monthDays[hmonth];
371 return [hyear, hmonth, hday];
373 daysToYear: function(year) {
374 // calculates how many days since Jan 1, 0001
375 var yearsToYear30 = Math.floor((year - 1) / 30) * 30,
376 yearsInto30 = year - yearsToYear30 - 1,
377 days = Math.floor((yearsToYear30 * 10631) / 30) + 227013;
378 while (yearsInto30 > 0) {
379 days += (this.isLeapYear(yearsInto30) ? 355 : 354);
384 isLeapYear: function(year) {
385 return ((((year * 11) + 14) % 30) < 11);
389 Gregorian_MiddleEastFrench: {
390 name: "Gregorian_MiddleEastFrench",
393 names: ["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],
394 namesAbbr: ["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],
395 namesShort: ["di","lu","ma","me","je","ve","sa"]
398 names: ["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],
399 namesAbbr: ["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""]
403 eras: [{"name":"ap. J.-C.","start":null,"offset":0}],
408 f: "dddd, MMMM dd, yyyy hh:mm tt",
409 F: "dddd, MMMM dd, yyyy hh:mm:ss tt",
413 Gregorian_TransliteratedEnglish: {
414 name: "Gregorian_TransliteratedEnglish",
417 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
418 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
419 namesShort: ["أ","ا","ث","أ","خ","ج","س"]
422 names: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],
423 namesAbbr: ["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
427 eras: [{"name":"م","start":null,"offset":0}],
432 f: "dddd, MMMM dd, yyyy hh:mm tt",
433 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
436 Gregorian_TransliteratedFrench: {
437 name: "Gregorian_TransliteratedFrench",
440 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
441 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
442 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
445 names: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],
446 namesAbbr: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
450 eras: [{"name":"م","start":null,"offset":0}],
455 f: "dddd, MMMM dd, yyyy hh:mm tt",
456 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"