1 строка
11 KiB
JavaScript
1 строка
11 KiB
JavaScript
|
ej.addCulture("ar-TN", { name: "ar-TN", englishName: "Arabic (Tunisia)", nativeName: "العربية (تونس)", language: "ar", isRTL: !0, numberFormat: { pattern: ["n-"], decimals: 3, NaN: "ليس برقم", negativeInfinity: "-لا نهاية", positiveInfinity: "+لا نهاية", percent: { decimals: 3 }, currency: { pattern: ["$n-", "$ n"], decimals: 3, symbol: "د.ت." } }, calendars: { standard: { "/": "-", firstDay: 1, days: { names: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], namesAbbr: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], namesShort: ["ح", "ن", "ث", "ر", "خ", "ج", "س"] }, months: { names: ["جانفييه", "فيفرييه", "مارس", "أفريل", "مي", "جوان", "جوييه", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر", ""], namesAbbr: ["جانفييه", "فيفرييه", "مارس", "أفريل", "مي", "جوان", "جوييه", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر", ""] }, AM: ["ص", "ص", "ص"], PM: ["م", "م", "م"], patterns: { d: "dd-MM-yyyy", D: "dd MMMM, yyyy", t: "H:mm", T: "H:mm:ss", f: "dd MMMM, yyyy H:mm", F: "dd MMMM, yyyy H:mm:ss", M: "dd MMMM", Y: "MMMM, yyyy" } }, Hijri: { name: "Hijri", "/": "-", firstDay: 1, days: { names: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], namesAbbr: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], namesShort: ["ح", "ن", "ث", "ر", "خ", "ج", "س"] }, months: { names: ["محرم", "صفر", "ربيع الأول", "ربيع الآخرة", "جمادى الأولى", "جمادى الآخرة", "رجب", "شعبان", "رمضان", "شوال", "ذو القعدة", "ذو الحجة", ""], namesAbbr: ["محرم", "صفر", "ربيع الأول", "ربيع الآخرة", "جمادى الأولى", "جمادى الآخرة", "رجب", "شعبان", "رمضان", "شوال", "ذو القعدة", "ذو الحجة", ""] }, AM: ["ص", "ص", "ص"], PM: ["م", "م", "م"], twoDigitYearMax: 1451, patterns: { d: "dd-MM-yyyy", D: "dd MMMM, yyyy", t: "H:mm", T: "H:mm:ss", f: "dd MMMM, yyyy H:mm", F: "dd MMMM, yyyy H:mm:ss", M: "dd MMMM", Y: "MMMM, yyyy" }, convert: { ticks1970: 621355968e5, monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355], minDate: -425216736e5, maxDate: 0xe677d21fdbff, hijriAdjustment: 0, toGregorian: function (e, a, M) { var r = this.daysToYear(e) + this.monthDays[a] + M - 1 - this.hijriAdjustment, t = new Date(864e5 * r - this.ticks1970); return t.setMinutes(t.getMinutes() + t.getTimezoneOffset()), t }, fromGregorian: function (e) { if (e < this.minDate || e > this.maxDate) return null; var a, M, r = this.ticks1970 + (e - 0) - 6e4 * e.getTimezoneOffset(), t = Math.floor(r / 864e5) + 1 + this.hijriAdjustment, s = Math.floor(30 * (t - 227013) / 10631) + 1, n = this.daysToYear(s), y = this.isLeapYear(s) ? 355 : 354; n > t ? (s--, n -= y) : t === n ? (s--, n = this.daysToYear(s)) : t > n + y && (n += y, s++), M = 0; for (var d = t - n; 11 >= M && d > this.monthDays[M];) M++; return M--, a = d - this.monthDays[M], [s, M, a] }, daysToYear: function (e) { for (var a = 30 * Math.floor((e - 1) / 30), M = e - a - 1, r = Math.floor(10631 * a / 30) + 227013; M > 0;) r += this.isLeapYear(M) ? 355 : 354, M--; return r }, isLeapYear: function (e) { return 11 > (11 * e + 14) % 30 } } }, UmAlQura: { name: "UmAlQura", firstDay: 1, days: { names: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], namesAbbr: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], namesShort: ["ح", "ن", "ث", "ر", "خ", "ج", "س"] }, months: { names: ["محرم", "صفر", "ربيع الأول", "ربيع الثاني", "جمادى الأولى", "جم<EFBFBD>
|