datejs-rails 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/README.md +9 -6
- data/Rakefile +21 -0
- data/app/assets/javascripts/date.js +8 -0
- data/changelog.md +4 -0
- data/datejs-rails.gemspec +13 -0
- data/vendor/assets/javascripts/date/af-ZA.js +195 -0
- data/vendor/assets/javascripts/date/ar-AE.js +195 -0
- data/vendor/assets/javascripts/date/ar-BH.js +195 -0
- data/vendor/assets/javascripts/date/ar-DZ.js +195 -0
- data/vendor/assets/javascripts/date/ar-EG.js +195 -0
- data/vendor/assets/javascripts/date/ar-IQ.js +195 -0
- data/vendor/assets/javascripts/date/ar-JO.js +195 -0
- data/vendor/assets/javascripts/date/ar-KW.js +195 -0
- data/vendor/assets/javascripts/date/ar-LB.js +195 -0
- data/vendor/assets/javascripts/date/ar-LY.js +195 -0
- data/vendor/assets/javascripts/date/ar-MA.js +195 -0
- data/vendor/assets/javascripts/date/ar-OM.js +195 -0
- data/vendor/assets/javascripts/date/ar-QA.js +195 -0
- data/vendor/assets/javascripts/date/ar-SA.js +195 -0
- data/vendor/assets/javascripts/date/ar-SY.js +195 -0
- data/vendor/assets/javascripts/date/ar-TN.js +195 -0
- data/vendor/assets/javascripts/date/ar-YE.js +195 -0
- data/vendor/assets/javascripts/date/az-Cyrl-AZ.js +195 -0
- data/vendor/assets/javascripts/date/az-Latn-AZ.js +195 -0
- data/vendor/assets/javascripts/date/be-BY.js +195 -0
- data/vendor/assets/javascripts/date/bg-BG.js +195 -0
- data/vendor/assets/javascripts/date/bs-Latn-BA.js +195 -0
- data/vendor/assets/javascripts/date/ca-ES.js +195 -0
- data/vendor/assets/javascripts/date/core.js +871 -0
- data/vendor/assets/javascripts/date/cs-CZ.js +195 -0
- data/vendor/assets/javascripts/date/cy-GB.js +195 -0
- data/vendor/assets/javascripts/date/da-DK.js +195 -0
- data/vendor/assets/javascripts/date/date.js +21 -0
- data/vendor/assets/javascripts/date/de-AT.js +195 -0
- data/vendor/assets/javascripts/date/de-CH.js +195 -0
- data/vendor/assets/javascripts/date/de-DE.js +195 -0
- data/vendor/assets/javascripts/date/de-LI.js +195 -0
- data/vendor/assets/javascripts/date/de-LU.js +195 -0
- data/vendor/assets/javascripts/date/dv-MV.js +195 -0
- data/vendor/assets/javascripts/date/el-GR.js +195 -0
- data/vendor/assets/javascripts/date/en-029.js +195 -0
- data/vendor/assets/javascripts/date/en-AU.js +195 -0
- data/vendor/assets/javascripts/date/en-BZ.js +195 -0
- data/vendor/assets/javascripts/date/en-CA.js +195 -0
- data/vendor/assets/javascripts/date/en-GB.js +195 -0
- data/vendor/assets/javascripts/date/en-IE.js +195 -0
- data/vendor/assets/javascripts/date/en-JM.js +195 -0
- data/vendor/assets/javascripts/date/en-NZ.js +195 -0
- data/vendor/assets/javascripts/date/en-PH.js +195 -0
- data/vendor/assets/javascripts/date/en-TT.js +195 -0
- data/vendor/assets/javascripts/date/en-US.js +195 -0
- data/vendor/assets/javascripts/date/en-ZA.js +195 -0
- data/vendor/assets/javascripts/date/en-ZW.js +195 -0
- data/vendor/assets/javascripts/date/es-AR.js +195 -0
- data/vendor/assets/javascripts/date/es-BO.js +195 -0
- data/vendor/assets/javascripts/date/es-CL.js +195 -0
- data/vendor/assets/javascripts/date/es-CO.js +195 -0
- data/vendor/assets/javascripts/date/es-CR.js +195 -0
- data/vendor/assets/javascripts/date/es-DO.js +195 -0
- data/vendor/assets/javascripts/date/es-EC.js +195 -0
- data/vendor/assets/javascripts/date/es-ES.js +195 -0
- data/vendor/assets/javascripts/date/es-GT.js +195 -0
- data/vendor/assets/javascripts/date/es-HN.js +195 -0
- data/vendor/assets/javascripts/date/es-MX.js +195 -0
- data/vendor/assets/javascripts/date/es-NI.js +195 -0
- data/vendor/assets/javascripts/date/es-PA.js +195 -0
- data/vendor/assets/javascripts/date/es-PE.js +195 -0
- data/vendor/assets/javascripts/date/es-PR.js +195 -0
- data/vendor/assets/javascripts/date/es-PY.js +195 -0
- data/vendor/assets/javascripts/date/es-SV.js +195 -0
- data/vendor/assets/javascripts/date/es-UY.js +195 -0
- data/vendor/assets/javascripts/date/es-VE.js +195 -0
- data/vendor/assets/javascripts/date/et-EE.js +195 -0
- data/vendor/assets/javascripts/date/eu-ES.js +195 -0
- data/vendor/assets/javascripts/{datejs-extras.js → date/extras.js} +1 -1
- data/vendor/assets/javascripts/date/fa-IR.js +195 -0
- data/vendor/assets/javascripts/date/fi-FI.js +195 -0
- data/vendor/assets/javascripts/date/fo-FO.js +195 -0
- data/vendor/assets/javascripts/date/fr-BE.js +195 -0
- data/vendor/assets/javascripts/date/fr-CA.js +195 -0
- data/vendor/assets/javascripts/date/fr-CH.js +195 -0
- data/vendor/assets/javascripts/date/fr-FR.js +195 -0
- data/vendor/assets/javascripts/date/fr-LU.js +195 -0
- data/vendor/assets/javascripts/date/fr-MC.js +195 -0
- data/vendor/assets/javascripts/date/gl-ES.js +195 -0
- data/vendor/assets/javascripts/date/gu-IN.js +195 -0
- data/vendor/assets/javascripts/date/he-IL.js +195 -0
- data/vendor/assets/javascripts/date/hi-IN.js +195 -0
- data/vendor/assets/javascripts/date/hr-BA.js +195 -0
- data/vendor/assets/javascripts/date/hr-HR.js +195 -0
- data/vendor/assets/javascripts/date/hu-HU.js +195 -0
- data/vendor/assets/javascripts/date/hy-AM.js +195 -0
- data/vendor/assets/javascripts/date/id-ID.js +195 -0
- data/vendor/assets/javascripts/date/is-IS.js +195 -0
- data/vendor/assets/javascripts/date/it-CH.js +195 -0
- data/vendor/assets/javascripts/date/it-IT.js +195 -0
- data/vendor/assets/javascripts/date/ja-JP.js +195 -0
- data/vendor/assets/javascripts/date/ka-GE.js +195 -0
- data/vendor/assets/javascripts/date/kk-KZ.js +195 -0
- data/vendor/assets/javascripts/date/kn-IN.js +195 -0
- data/vendor/assets/javascripts/date/ko-KR.js +195 -0
- data/vendor/assets/javascripts/date/kok-IN.js +195 -0
- data/vendor/assets/javascripts/date/ky-KG.js +195 -0
- data/vendor/assets/javascripts/date/lt-LT.js +195 -0
- data/vendor/assets/javascripts/date/lv-LV.js +195 -0
- data/vendor/assets/javascripts/date/mi-NZ.js +195 -0
- data/vendor/assets/javascripts/date/mk-MK.js +195 -0
- data/vendor/assets/javascripts/date/mn-MN.js +195 -0
- data/vendor/assets/javascripts/date/mr-IN.js +195 -0
- data/vendor/assets/javascripts/date/ms-BN.js +195 -0
- data/vendor/assets/javascripts/date/ms-MY.js +195 -0
- data/vendor/assets/javascripts/date/mt-MT.js +195 -0
- data/vendor/assets/javascripts/date/nb-NO.js +195 -0
- data/vendor/assets/javascripts/date/nl-BE.js +195 -0
- data/vendor/assets/javascripts/date/nl-NL.js +195 -0
- data/vendor/assets/javascripts/date/nn-NO.js +195 -0
- data/vendor/assets/javascripts/date/ns-ZA.js +195 -0
- data/vendor/assets/javascripts/date/pa-IN.js +195 -0
- data/vendor/assets/javascripts/date/parser.js +1170 -0
- data/vendor/assets/javascripts/date/pl-PL.js +195 -0
- data/vendor/assets/javascripts/date/pt-BR.js +195 -0
- data/vendor/assets/javascripts/date/pt-PT.js +195 -0
- data/vendor/assets/javascripts/date/quz-BO.js +195 -0
- data/vendor/assets/javascripts/date/quz-EC.js +195 -0
- data/vendor/assets/javascripts/date/quz-PE.js +195 -0
- data/vendor/assets/javascripts/date/ro-RO.js +195 -0
- data/vendor/assets/javascripts/date/ru-RU.js +195 -0
- data/vendor/assets/javascripts/date/sa-IN.js +195 -0
- data/vendor/assets/javascripts/date/se-FI.js +195 -0
- data/vendor/assets/javascripts/date/se-NO.js +195 -0
- data/vendor/assets/javascripts/date/se-SE.js +195 -0
- data/vendor/assets/javascripts/date/sk-SK.js +195 -0
- data/vendor/assets/javascripts/date/sl-SI.js +195 -0
- data/vendor/assets/javascripts/date/sma-NO.js +195 -0
- data/vendor/assets/javascripts/date/sma-SE.js +195 -0
- data/vendor/assets/javascripts/date/smj-NO.js +195 -0
- data/vendor/assets/javascripts/date/smj-SE.js +195 -0
- data/vendor/assets/javascripts/date/smn-FI.js +195 -0
- data/vendor/assets/javascripts/date/sms-FI.js +195 -0
- data/vendor/assets/javascripts/date/sq-AL.js +195 -0
- data/vendor/assets/javascripts/date/sr-Cyrl-BA.js +195 -0
- data/vendor/assets/javascripts/date/sr-Cyrl-CS.js +195 -0
- data/vendor/assets/javascripts/date/sr-Latn-BA.js +195 -0
- data/vendor/assets/javascripts/date/sr-Latn-CS.js +195 -0
- data/vendor/assets/javascripts/date/sugarpak.js +476 -0
- data/vendor/assets/javascripts/date/sv-FI.js +195 -0
- data/vendor/assets/javascripts/date/sv-SE.js +195 -0
- data/vendor/assets/javascripts/date/sw-KE.js +195 -0
- data/vendor/assets/javascripts/date/syr-SY.js +195 -0
- data/vendor/assets/javascripts/date/ta-IN.js +195 -0
- data/vendor/assets/javascripts/date/te-IN.js +195 -0
- data/vendor/assets/javascripts/date/th-TH.js +195 -0
- data/vendor/assets/javascripts/date/time.js +269 -0
- data/vendor/assets/javascripts/date/tn-ZA.js +195 -0
- data/vendor/assets/javascripts/date/tr-TR.js +195 -0
- data/vendor/assets/javascripts/date/tt-RU.js +195 -0
- data/vendor/assets/javascripts/date/uk-UA.js +195 -0
- data/vendor/assets/javascripts/date/ur-PK.js +195 -0
- data/vendor/assets/javascripts/date/uz-Cyrl-UZ.js +195 -0
- data/vendor/assets/javascripts/date/uz-Latn-UZ.js +195 -0
- data/vendor/assets/javascripts/date/vi-VN.js +195 -0
- data/vendor/assets/javascripts/date/xh-ZA.js +195 -0
- data/vendor/assets/javascripts/date/zh-CN.js +195 -0
- data/vendor/assets/javascripts/date/zh-HK.js +195 -0
- data/vendor/assets/javascripts/date/zh-MO.js +195 -0
- data/vendor/assets/javascripts/date/zh-SG.js +195 -0
- data/vendor/assets/javascripts/date/zh-TW.js +195 -0
- data/vendor/assets/javascripts/date/zu-ZA.js +195 -0
- metadata +221 -188
- data/vendor/assets/javascripts/date-af-ZA.js +0 -104
- data/vendor/assets/javascripts/date-ar-AE.js +0 -104
- data/vendor/assets/javascripts/date-ar-BH.js +0 -104
- data/vendor/assets/javascripts/date-ar-DZ.js +0 -104
- data/vendor/assets/javascripts/date-ar-EG.js +0 -104
- data/vendor/assets/javascripts/date-ar-IQ.js +0 -104
- data/vendor/assets/javascripts/date-ar-JO.js +0 -104
- data/vendor/assets/javascripts/date-ar-KW.js +0 -104
- data/vendor/assets/javascripts/date-ar-LB.js +0 -104
- data/vendor/assets/javascripts/date-ar-LY.js +0 -104
- data/vendor/assets/javascripts/date-ar-MA.js +0 -104
- data/vendor/assets/javascripts/date-ar-OM.js +0 -104
- data/vendor/assets/javascripts/date-ar-QA.js +0 -104
- data/vendor/assets/javascripts/date-ar-SA.js +0 -104
- data/vendor/assets/javascripts/date-ar-SY.js +0 -104
- data/vendor/assets/javascripts/date-ar-TN.js +0 -104
- data/vendor/assets/javascripts/date-ar-YE.js +0 -104
- data/vendor/assets/javascripts/date-az-Cyrl-AZ.js +0 -104
- data/vendor/assets/javascripts/date-az-Latn-AZ.js +0 -104
- data/vendor/assets/javascripts/date-be-BY.js +0 -104
- data/vendor/assets/javascripts/date-bg-BG.js +0 -104
- data/vendor/assets/javascripts/date-bs-Latn-BA.js +0 -104
- data/vendor/assets/javascripts/date-ca-ES.js +0 -104
- data/vendor/assets/javascripts/date-cs-CZ.js +0 -104
- data/vendor/assets/javascripts/date-cy-GB.js +0 -104
- data/vendor/assets/javascripts/date-da-DK.js +0 -104
- data/vendor/assets/javascripts/date-de-AT.js +0 -104
- data/vendor/assets/javascripts/date-de-CH.js +0 -104
- data/vendor/assets/javascripts/date-de-DE.js +0 -104
- data/vendor/assets/javascripts/date-de-LI.js +0 -104
- data/vendor/assets/javascripts/date-de-LU.js +0 -104
- data/vendor/assets/javascripts/date-dv-MV.js +0 -104
- data/vendor/assets/javascripts/date-el-GR.js +0 -104
- data/vendor/assets/javascripts/date-en-029.js +0 -104
- data/vendor/assets/javascripts/date-en-AU.js +0 -104
- data/vendor/assets/javascripts/date-en-BZ.js +0 -104
- data/vendor/assets/javascripts/date-en-CA.js +0 -104
- data/vendor/assets/javascripts/date-en-GB.js +0 -104
- data/vendor/assets/javascripts/date-en-IE.js +0 -104
- data/vendor/assets/javascripts/date-en-JM.js +0 -104
- data/vendor/assets/javascripts/date-en-NZ.js +0 -104
- data/vendor/assets/javascripts/date-en-PH.js +0 -104
- data/vendor/assets/javascripts/date-en-TT.js +0 -104
- data/vendor/assets/javascripts/date-en-US.js +0 -104
- data/vendor/assets/javascripts/date-en-ZA.js +0 -104
- data/vendor/assets/javascripts/date-en-ZW.js +0 -104
- data/vendor/assets/javascripts/date-es-AR.js +0 -104
- data/vendor/assets/javascripts/date-es-BO.js +0 -104
- data/vendor/assets/javascripts/date-es-CL.js +0 -104
- data/vendor/assets/javascripts/date-es-CO.js +0 -104
- data/vendor/assets/javascripts/date-es-CR.js +0 -104
- data/vendor/assets/javascripts/date-es-DO.js +0 -104
- data/vendor/assets/javascripts/date-es-EC.js +0 -104
- data/vendor/assets/javascripts/date-es-ES.js +0 -104
- data/vendor/assets/javascripts/date-es-GT.js +0 -104
- data/vendor/assets/javascripts/date-es-HN.js +0 -104
- data/vendor/assets/javascripts/date-es-MX.js +0 -104
- data/vendor/assets/javascripts/date-es-NI.js +0 -104
- data/vendor/assets/javascripts/date-es-PA.js +0 -104
- data/vendor/assets/javascripts/date-es-PE.js +0 -104
- data/vendor/assets/javascripts/date-es-PR.js +0 -104
- data/vendor/assets/javascripts/date-es-PY.js +0 -104
- data/vendor/assets/javascripts/date-es-SV.js +0 -104
- data/vendor/assets/javascripts/date-es-UY.js +0 -104
- data/vendor/assets/javascripts/date-es-VE.js +0 -104
- data/vendor/assets/javascripts/date-et-EE.js +0 -104
- data/vendor/assets/javascripts/date-eu-ES.js +0 -104
- data/vendor/assets/javascripts/date-fa-IR.js +0 -104
- data/vendor/assets/javascripts/date-fi-FI.js +0 -104
- data/vendor/assets/javascripts/date-fo-FO.js +0 -104
- data/vendor/assets/javascripts/date-fr-BE.js +0 -104
- data/vendor/assets/javascripts/date-fr-CA.js +0 -104
- data/vendor/assets/javascripts/date-fr-CH.js +0 -104
- data/vendor/assets/javascripts/date-fr-FR.js +0 -104
- data/vendor/assets/javascripts/date-fr-LU.js +0 -104
- data/vendor/assets/javascripts/date-fr-MC.js +0 -104
- data/vendor/assets/javascripts/date-gl-ES.js +0 -104
- data/vendor/assets/javascripts/date-gu-IN.js +0 -104
- data/vendor/assets/javascripts/date-he-IL.js +0 -104
- data/vendor/assets/javascripts/date-hi-IN.js +0 -104
- data/vendor/assets/javascripts/date-hr-BA.js +0 -104
- data/vendor/assets/javascripts/date-hr-HR.js +0 -104
- data/vendor/assets/javascripts/date-hu-HU.js +0 -104
- data/vendor/assets/javascripts/date-hy-AM.js +0 -104
- data/vendor/assets/javascripts/date-id-ID.js +0 -104
- data/vendor/assets/javascripts/date-is-IS.js +0 -104
- data/vendor/assets/javascripts/date-it-CH.js +0 -104
- data/vendor/assets/javascripts/date-it-IT.js +0 -104
- data/vendor/assets/javascripts/date-ja-JP.js +0 -104
- data/vendor/assets/javascripts/date-ka-GE.js +0 -104
- data/vendor/assets/javascripts/date-kk-KZ.js +0 -104
- data/vendor/assets/javascripts/date-kn-IN.js +0 -104
- data/vendor/assets/javascripts/date-ko-KR.js +0 -104
- data/vendor/assets/javascripts/date-kok-IN.js +0 -104
- data/vendor/assets/javascripts/date-ky-KG.js +0 -104
- data/vendor/assets/javascripts/date-lt-LT.js +0 -104
- data/vendor/assets/javascripts/date-lv-LV.js +0 -104
- data/vendor/assets/javascripts/date-mi-NZ.js +0 -104
- data/vendor/assets/javascripts/date-mk-MK.js +0 -104
- data/vendor/assets/javascripts/date-mn-MN.js +0 -104
- data/vendor/assets/javascripts/date-mr-IN.js +0 -104
- data/vendor/assets/javascripts/date-ms-BN.js +0 -104
- data/vendor/assets/javascripts/date-ms-MY.js +0 -104
- data/vendor/assets/javascripts/date-mt-MT.js +0 -104
- data/vendor/assets/javascripts/date-nb-NO.js +0 -104
- data/vendor/assets/javascripts/date-nl-BE.js +0 -104
- data/vendor/assets/javascripts/date-nl-NL.js +0 -104
- data/vendor/assets/javascripts/date-nn-NO.js +0 -104
- data/vendor/assets/javascripts/date-ns-ZA.js +0 -104
- data/vendor/assets/javascripts/date-pa-IN.js +0 -104
- data/vendor/assets/javascripts/date-pl-PL.js +0 -104
- data/vendor/assets/javascripts/date-pt-BR.js +0 -104
- data/vendor/assets/javascripts/date-pt-PT.js +0 -104
- data/vendor/assets/javascripts/date-quz-BO.js +0 -104
- data/vendor/assets/javascripts/date-quz-EC.js +0 -104
- data/vendor/assets/javascripts/date-quz-PE.js +0 -104
- data/vendor/assets/javascripts/date-ro-RO.js +0 -104
- data/vendor/assets/javascripts/date-ru-RU.js +0 -104
- data/vendor/assets/javascripts/date-sa-IN.js +0 -104
- data/vendor/assets/javascripts/date-se-FI.js +0 -104
- data/vendor/assets/javascripts/date-se-NO.js +0 -104
- data/vendor/assets/javascripts/date-se-SE.js +0 -104
- data/vendor/assets/javascripts/date-sk-SK.js +0 -104
- data/vendor/assets/javascripts/date-sl-SI.js +0 -104
- data/vendor/assets/javascripts/date-sma-NO.js +0 -104
- data/vendor/assets/javascripts/date-sma-SE.js +0 -104
- data/vendor/assets/javascripts/date-smj-NO.js +0 -104
- data/vendor/assets/javascripts/date-smj-SE.js +0 -104
- data/vendor/assets/javascripts/date-smn-FI.js +0 -104
- data/vendor/assets/javascripts/date-sms-FI.js +0 -104
- data/vendor/assets/javascripts/date-sq-AL.js +0 -104
- data/vendor/assets/javascripts/date-sr-Cyrl-BA.js +0 -104
- data/vendor/assets/javascripts/date-sr-Cyrl-CS.js +0 -104
- data/vendor/assets/javascripts/date-sr-Latn-BA.js +0 -104
- data/vendor/assets/javascripts/date-sr-Latn-CS.js +0 -104
- data/vendor/assets/javascripts/date-sv-FI.js +0 -104
- data/vendor/assets/javascripts/date-sv-SE.js +0 -104
- data/vendor/assets/javascripts/date-sw-KE.js +0 -104
- data/vendor/assets/javascripts/date-syr-SY.js +0 -104
- data/vendor/assets/javascripts/date-ta-IN.js +0 -104
- data/vendor/assets/javascripts/date-te-IN.js +0 -104
- data/vendor/assets/javascripts/date-th-TH.js +0 -104
- data/vendor/assets/javascripts/date-tn-ZA.js +0 -104
- data/vendor/assets/javascripts/date-tr-TR.js +0 -104
- data/vendor/assets/javascripts/date-tt-RU.js +0 -104
- data/vendor/assets/javascripts/date-uk-UA.js +0 -104
- data/vendor/assets/javascripts/date-ur-PK.js +0 -104
- data/vendor/assets/javascripts/date-uz-Cyrl-UZ.js +0 -104
- data/vendor/assets/javascripts/date-uz-Latn-UZ.js +0 -104
- data/vendor/assets/javascripts/date-vi-VN.js +0 -104
- data/vendor/assets/javascripts/date-xh-ZA.js +0 -104
- data/vendor/assets/javascripts/date-zh-CN.js +0 -104
- data/vendor/assets/javascripts/date-zh-HK.js +0 -104
- data/vendor/assets/javascripts/date-zh-MO.js +0 -104
- data/vendor/assets/javascripts/date-zh-SG.js +0 -104
- data/vendor/assets/javascripts/date-zh-TW.js +0 -104
- data/vendor/assets/javascripts/date-zu-ZA.js +0 -104
- data/vendor/assets/javascripts/date.js +0 -104
@@ -0,0 +1,195 @@
|
|
1
|
+
Date.CultureInfo = {
|
2
|
+
/* Culture Name */
|
3
|
+
name: "th-TH",
|
4
|
+
englishName: "Thai (Thailand)",
|
5
|
+
nativeName: "ไทย (ไทย)",
|
6
|
+
|
7
|
+
/* Day Name Strings */
|
8
|
+
dayNames: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
|
9
|
+
abbreviatedDayNames: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],
|
10
|
+
shortestDayNames: ["อ", "จ", "อ", "พ", "พ", "ศ", "ส"],
|
11
|
+
firstLetterDayNames: ["อ", "จ", "อ", "พ", "พ", "ศ", "ส"],
|
12
|
+
|
13
|
+
/* Month Name Strings */
|
14
|
+
monthNames: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
|
15
|
+
abbreviatedMonthNames: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
|
16
|
+
|
17
|
+
/* AM/PM Designators */
|
18
|
+
amDesignator: "AM",
|
19
|
+
pmDesignator: "PM",
|
20
|
+
|
21
|
+
firstDayOfWeek: 1,
|
22
|
+
twoDigitYearMax: 2572,
|
23
|
+
|
24
|
+
/**
|
25
|
+
* The dateElementOrder is based on the order of the
|
26
|
+
* format specifiers in the formatPatterns.DatePattern.
|
27
|
+
*
|
28
|
+
* Example:
|
29
|
+
<pre>
|
30
|
+
shortDatePattern dateElementOrder
|
31
|
+
------------------ ----------------
|
32
|
+
"M/d/yyyy" "mdy"
|
33
|
+
"dd/MM/yyyy" "dmy"
|
34
|
+
"yyyy-MM-dd" "ymd"
|
35
|
+
</pre>
|
36
|
+
*
|
37
|
+
* The correct dateElementOrder is required by the parser to
|
38
|
+
* determine the expected order of the date elements in the
|
39
|
+
* string being parsed.
|
40
|
+
*/
|
41
|
+
dateElementOrder: "dmy",
|
42
|
+
|
43
|
+
/* Standard date and time format patterns */
|
44
|
+
formatPatterns: {
|
45
|
+
shortDate: "d/M/yyyy",
|
46
|
+
longDate: "d MMMM yyyy",
|
47
|
+
shortTime: "H:mm",
|
48
|
+
longTime: "H:mm:ss",
|
49
|
+
fullDateTime: "d MMMM yyyy H:mm:ss",
|
50
|
+
sortableDateTime: "yyyy-MM-ddTHH:mm:ss",
|
51
|
+
universalSortableDateTime: "yyyy-MM-dd HH:mm:ssZ",
|
52
|
+
rfc1123: "ddd, dd MMM yyyy HH:mm:ss GMT",
|
53
|
+
monthDay: "dd MMMM",
|
54
|
+
yearMonth: "MMMM yyyy"
|
55
|
+
},
|
56
|
+
|
57
|
+
/**
|
58
|
+
* NOTE: If a string format is not parsing correctly, but
|
59
|
+
* you would expect it parse, the problem likely lies below.
|
60
|
+
*
|
61
|
+
* The following regex patterns control most of the string matching
|
62
|
+
* within the parser.
|
63
|
+
*
|
64
|
+
* The Month name and Day name patterns were automatically generated
|
65
|
+
* and in general should be (mostly) correct.
|
66
|
+
*
|
67
|
+
* Beyond the month and day name patterns are natural language strings.
|
68
|
+
* Example: "next", "today", "months"
|
69
|
+
*
|
70
|
+
* These natural language string may NOT be correct for this culture.
|
71
|
+
* If they are not correct, please translate and edit this file
|
72
|
+
* providing the correct regular expression pattern.
|
73
|
+
*
|
74
|
+
* If you modify this file, please post your revised CultureInfo file
|
75
|
+
* to the Datejs Forum located at http://www.datejs.com/forums/.
|
76
|
+
*
|
77
|
+
* Please mark the subject of the post with [CultureInfo]. Example:
|
78
|
+
* Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)
|
79
|
+
*
|
80
|
+
* We will add the modified patterns to the master source files.
|
81
|
+
*
|
82
|
+
* As well, please review the list of "Future Strings" section below.
|
83
|
+
*/
|
84
|
+
regexPatterns: {
|
85
|
+
jan: /^ม(.(กราค)?)?/i,
|
86
|
+
feb: /^ก(.(ุมภาพันธ์)?)?/i,
|
87
|
+
mar: /^มี(.(นาคม)?)?/i,
|
88
|
+
apr: /^เม(.(ษายน)?)?/i,
|
89
|
+
may: /^พ(.(ฤษภาคม)?)?/i,
|
90
|
+
jun: /^มิ(.(ถุนายน)?)?/i,
|
91
|
+
jul: /^ก(.(รฎาคม)?)?/i,
|
92
|
+
aug: /^ส(.(ิงหาคม)?)?/i,
|
93
|
+
sep: /^ก(.(ันยายน)?)?/i,
|
94
|
+
oct: /^ต(.(ุลาคม)?)?/i,
|
95
|
+
nov: /^พ(.(ฤศจิกายน)?)?/i,
|
96
|
+
dec: /^ธ(.(ันวาคม)?)?/i,
|
97
|
+
|
98
|
+
sun: /^อ(า(.(ทิตย์)?)?)?/i,
|
99
|
+
mon: /^จ((.(ันทร์)?)?)?/i,
|
100
|
+
tue: /^อ((.(ังคาร)?)?)?/i,
|
101
|
+
wed: /^พ((.(ุธ)?)?)?/i,
|
102
|
+
thu: /^พ(ฤ(.(หัสบดี)?)?)?/i,
|
103
|
+
fri: /^ศ((.(ุกร์)?)?)?/i,
|
104
|
+
sat: /^ส((.(สาร์)?)?)?/i,
|
105
|
+
|
106
|
+
future: /^next/i,
|
107
|
+
past: /^last|past|prev(ious)?/i,
|
108
|
+
add: /^(\+|aft(er)?|from|hence)/i,
|
109
|
+
subtract: /^(\-|bef(ore)?|ago)/i,
|
110
|
+
|
111
|
+
yesterday: /^yes(terday)?/i,
|
112
|
+
today: /^t(od(ay)?)?/i,
|
113
|
+
tomorrow: /^tom(orrow)?/i,
|
114
|
+
now: /^n(ow)?/i,
|
115
|
+
|
116
|
+
millisecond: /^ms|milli(second)?s?/i,
|
117
|
+
second: /^sec(ond)?s?/i,
|
118
|
+
minute: /^mn|min(ute)?s?/i,
|
119
|
+
hour: /^h(our)?s?/i,
|
120
|
+
week: /^w(eek)?s?/i,
|
121
|
+
month: /^m(onth)?s?/i,
|
122
|
+
day: /^d(ay)?s?/i,
|
123
|
+
year: /^y(ear)?s?/i,
|
124
|
+
|
125
|
+
shortMeridian: /^(a|p)/i,
|
126
|
+
longMeridian: /^(a\.?m?\.?|p\.?m?\.?)/i,
|
127
|
+
timezone: /^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,
|
128
|
+
ordinalSuffix: /^\s*(st|nd|rd|th)/i,
|
129
|
+
timeContext: /^\s*(\:|a(?!u|p)|p)/i
|
130
|
+
},
|
131
|
+
|
132
|
+
timezones: [{name:"UTC", offset:"-000"}, {name:"GMT", offset:"-000"}, {name:"EST", offset:"-0500"}, {name:"EDT", offset:"-0400"}, {name:"CST", offset:"-0600"}, {name:"CDT", offset:"-0500"}, {name:"MST", offset:"-0700"}, {name:"MDT", offset:"-0600"}, {name:"PST", offset:"-0800"}, {name:"PDT", offset:"-0700"}]
|
133
|
+
};
|
134
|
+
|
135
|
+
/********************
|
136
|
+
** Future Strings **
|
137
|
+
********************
|
138
|
+
*
|
139
|
+
* The following list of strings may not be currently being used, but
|
140
|
+
* may be incorporated into the Datejs library later.
|
141
|
+
*
|
142
|
+
* We would appreciate any help translating the strings below.
|
143
|
+
*
|
144
|
+
* If you modify this file, please post your revised CultureInfo file
|
145
|
+
* to the Datejs Forum located at http://www.datejs.com/forums/.
|
146
|
+
*
|
147
|
+
* Please mark the subject of the post with [CultureInfo]. Example:
|
148
|
+
* Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)b
|
149
|
+
*
|
150
|
+
* English Name Translated
|
151
|
+
* ------------------ -----------------
|
152
|
+
* about about
|
153
|
+
* ago ago
|
154
|
+
* date date
|
155
|
+
* time time
|
156
|
+
* calendar calendar
|
157
|
+
* show show
|
158
|
+
* hourly hourly
|
159
|
+
* daily daily
|
160
|
+
* weekly weekly
|
161
|
+
* bi-weekly bi-weekly
|
162
|
+
* fortnight fortnight
|
163
|
+
* monthly monthly
|
164
|
+
* bi-monthly bi-monthly
|
165
|
+
* quarter quarter
|
166
|
+
* quarterly quarterly
|
167
|
+
* yearly yearly
|
168
|
+
* annual annual
|
169
|
+
* annually annually
|
170
|
+
* annum annum
|
171
|
+
* again again
|
172
|
+
* between between
|
173
|
+
* after after
|
174
|
+
* from now from now
|
175
|
+
* repeat repeat
|
176
|
+
* times times
|
177
|
+
* per per
|
178
|
+
* min (abbrev minute) min
|
179
|
+
* morning morning
|
180
|
+
* noon noon
|
181
|
+
* night night
|
182
|
+
* midnight midnight
|
183
|
+
* mid-night mid-night
|
184
|
+
* evening evening
|
185
|
+
* final final
|
186
|
+
* future future
|
187
|
+
* spring spring
|
188
|
+
* summer summer
|
189
|
+
* fall fall
|
190
|
+
* winter winter
|
191
|
+
* end of end of
|
192
|
+
* end end
|
193
|
+
* long long
|
194
|
+
* short short
|
195
|
+
*/
|
@@ -0,0 +1,269 @@
|
|
1
|
+
/**
|
2
|
+
* @version: 1.0 Alpha-1
|
3
|
+
* @author: Coolite Inc. http://www.coolite.com/
|
4
|
+
* @date: 2008-04-13
|
5
|
+
* @copyright: Copyright (c) 2006-2008, Coolite Inc. (http://www.coolite.com/). All rights reserved.
|
6
|
+
* @license: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
|
7
|
+
* @website: http://www.datejs.com/
|
8
|
+
*/
|
9
|
+
|
10
|
+
/*
|
11
|
+
* TimeSpan(milliseconds);
|
12
|
+
* TimeSpan(days, hours, minutes, seconds);
|
13
|
+
* TimeSpan(days, hours, minutes, seconds, milliseconds);
|
14
|
+
*/
|
15
|
+
var TimeSpan = function (days, hours, minutes, seconds, milliseconds) {
|
16
|
+
var attrs = "days hours minutes seconds milliseconds".split(/\s+/);
|
17
|
+
|
18
|
+
var gFn = function (attr) {
|
19
|
+
return function () {
|
20
|
+
return this[attr];
|
21
|
+
};
|
22
|
+
};
|
23
|
+
|
24
|
+
var sFn = function (attr) {
|
25
|
+
return function (val) {
|
26
|
+
this[attr] = val;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
|
31
|
+
for (var i = 0; i < attrs.length ; i++) {
|
32
|
+
var $a = attrs[i], $b = $a.slice(0, 1).toUpperCase() + $a.slice(1);
|
33
|
+
TimeSpan.prototype[$a] = 0;
|
34
|
+
TimeSpan.prototype["get" + $b] = gFn($a);
|
35
|
+
TimeSpan.prototype["set" + $b] = sFn($a);
|
36
|
+
}
|
37
|
+
|
38
|
+
if (arguments.length == 4) {
|
39
|
+
this.setDays(days);
|
40
|
+
this.setHours(hours);
|
41
|
+
this.setMinutes(minutes);
|
42
|
+
this.setSeconds(seconds);
|
43
|
+
} else if (arguments.length == 5) {
|
44
|
+
this.setDays(days);
|
45
|
+
this.setHours(hours);
|
46
|
+
this.setMinutes(minutes);
|
47
|
+
this.setSeconds(seconds);
|
48
|
+
this.setMilliseconds(milliseconds);
|
49
|
+
} else if (arguments.length == 1 && typeof days == "number") {
|
50
|
+
var orient = (days < 0) ? -1 : +1;
|
51
|
+
this.setMilliseconds(Math.abs(days));
|
52
|
+
|
53
|
+
this.setDays(Math.floor(this.getMilliseconds() / 86400000) * orient);
|
54
|
+
this.setMilliseconds(this.getMilliseconds() % 86400000);
|
55
|
+
|
56
|
+
this.setHours(Math.floor(this.getMilliseconds() / 3600000) * orient);
|
57
|
+
this.setMilliseconds(this.getMilliseconds() % 3600000);
|
58
|
+
|
59
|
+
this.setMinutes(Math.floor(this.getMilliseconds() / 60000) * orient);
|
60
|
+
this.setMilliseconds(this.getMilliseconds() % 60000);
|
61
|
+
|
62
|
+
this.setSeconds(Math.floor(this.getMilliseconds() / 1000) * orient);
|
63
|
+
this.setMilliseconds(this.getMilliseconds() % 1000);
|
64
|
+
|
65
|
+
this.setMilliseconds(this.getMilliseconds() * orient);
|
66
|
+
}
|
67
|
+
|
68
|
+
this.getTotalMilliseconds = function () {
|
69
|
+
return (this.getDays() * 86400000) + (this.getHours() * 3600000) + (this.getMinutes() * 60000) + (this.getSeconds() * 1000);
|
70
|
+
};
|
71
|
+
|
72
|
+
this.compareTo = function (time) {
|
73
|
+
var t1 = new Date(1970, 1, 1, this.getHours(), this.getMinutes(), this.getSeconds()), t2;
|
74
|
+
if (time === null) {
|
75
|
+
t2 = new Date(1970, 1, 1, 0, 0, 0);
|
76
|
+
}
|
77
|
+
else {
|
78
|
+
t2 = new Date(1970, 1, 1, time.getHours(), time.getMinutes(), time.getSeconds());
|
79
|
+
}
|
80
|
+
return (t1 < t2) ? -1 : (t1 > t2) ? 1 : 0;
|
81
|
+
};
|
82
|
+
|
83
|
+
this.equals = function (time) {
|
84
|
+
return (this.compareTo(time) === 0);
|
85
|
+
};
|
86
|
+
|
87
|
+
this.add = function (time) {
|
88
|
+
return (time === null) ? this : this.addSeconds(time.getTotalMilliseconds() / 1000);
|
89
|
+
};
|
90
|
+
|
91
|
+
this.subtract = function (time) {
|
92
|
+
return (time === null) ? this : this.addSeconds(-time.getTotalMilliseconds() / 1000);
|
93
|
+
};
|
94
|
+
|
95
|
+
this.addDays = function (n) {
|
96
|
+
return new TimeSpan(this.getTotalMilliseconds() + (n * 86400000));
|
97
|
+
};
|
98
|
+
|
99
|
+
this.addHours = function (n) {
|
100
|
+
return new TimeSpan(this.getTotalMilliseconds() + (n * 3600000));
|
101
|
+
};
|
102
|
+
|
103
|
+
this.addMinutes = function (n) {
|
104
|
+
return new TimeSpan(this.getTotalMilliseconds() + (n * 60000));
|
105
|
+
};
|
106
|
+
|
107
|
+
this.addSeconds = function (n) {
|
108
|
+
return new TimeSpan(this.getTotalMilliseconds() + (n * 1000));
|
109
|
+
};
|
110
|
+
|
111
|
+
this.addMilliseconds = function (n) {
|
112
|
+
return new TimeSpan(this.getTotalMilliseconds() + n);
|
113
|
+
};
|
114
|
+
|
115
|
+
this.get12HourHour = function () {
|
116
|
+
return (this.getHours() > 12) ? this.getHours() - 12 : (this.getHours() === 0) ? 12 : this.getHours();
|
117
|
+
};
|
118
|
+
|
119
|
+
this.getDesignator = function () {
|
120
|
+
return (this.getHours() < 12) ? Date.CultureInfo.amDesignator : Date.CultureInfo.pmDesignator;
|
121
|
+
};
|
122
|
+
|
123
|
+
this.toString = function (format) {
|
124
|
+
this._toString = function () {
|
125
|
+
if (this.getDays() !== null && this.getDays() > 0) {
|
126
|
+
return this.getDays() + "." + this.getHours() + ":" + this.p(this.getMinutes()) + ":" + this.p(this.getSeconds());
|
127
|
+
}
|
128
|
+
else {
|
129
|
+
return this.getHours() + ":" + this.p(this.getMinutes()) + ":" + this.p(this.getSeconds());
|
130
|
+
}
|
131
|
+
};
|
132
|
+
|
133
|
+
this.p = function (s) {
|
134
|
+
return (s.toString().length < 2) ? "0" + s : s;
|
135
|
+
};
|
136
|
+
|
137
|
+
var me = this;
|
138
|
+
|
139
|
+
return format ? format.replace(/dd?|HH?|hh?|mm?|ss?|tt?/g,
|
140
|
+
function (format) {
|
141
|
+
switch (format) {
|
142
|
+
case "d":
|
143
|
+
return me.getDays();
|
144
|
+
case "dd":
|
145
|
+
return me.p(me.getDays());
|
146
|
+
case "H":
|
147
|
+
return me.getHours();
|
148
|
+
case "HH":
|
149
|
+
return me.p(me.getHours());
|
150
|
+
case "h":
|
151
|
+
return me.get12HourHour();
|
152
|
+
case "hh":
|
153
|
+
return me.p(me.get12HourHour());
|
154
|
+
case "m":
|
155
|
+
return me.getMinutes();
|
156
|
+
case "mm":
|
157
|
+
return me.p(me.getMinutes());
|
158
|
+
case "s":
|
159
|
+
return me.getSeconds();
|
160
|
+
case "ss":
|
161
|
+
return me.p(me.getSeconds());
|
162
|
+
case "t":
|
163
|
+
return ((me.getHours() < 12) ? Date.CultureInfo.amDesignator : Date.CultureInfo.pmDesignator).substring(0, 1);
|
164
|
+
case "tt":
|
165
|
+
return (me.getHours() < 12) ? Date.CultureInfo.amDesignator : Date.CultureInfo.pmDesignator;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
) : this._toString();
|
169
|
+
};
|
170
|
+
return this;
|
171
|
+
};
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Gets the time of day for this date instances.
|
175
|
+
* @return {TimeSpan} TimeSpan
|
176
|
+
*/
|
177
|
+
Date.prototype.getTimeOfDay = function () {
|
178
|
+
return new TimeSpan(0, this.getHours(), this.getMinutes(), this.getSeconds(), this.getMilliseconds());
|
179
|
+
};
|
180
|
+
|
181
|
+
/*
|
182
|
+
* TimePeriod(startDate, endDate);
|
183
|
+
* TimePeriod(years, months, days, hours, minutes, seconds, milliseconds);
|
184
|
+
*/
|
185
|
+
var TimePeriod = function (years, months, days, hours, minutes, seconds, milliseconds) {
|
186
|
+
var attrs = "years months days hours minutes seconds milliseconds".split(/\s+/);
|
187
|
+
|
188
|
+
var gFn = function (attr) {
|
189
|
+
return function () {
|
190
|
+
return this[attr];
|
191
|
+
};
|
192
|
+
};
|
193
|
+
|
194
|
+
var sFn = function (attr) {
|
195
|
+
return function (val) {
|
196
|
+
this[attr] = val;
|
197
|
+
return this;
|
198
|
+
};
|
199
|
+
};
|
200
|
+
|
201
|
+
for (var i = 0; i < attrs.length ; i++) {
|
202
|
+
var $a = attrs[i], $b = $a.slice(0, 1).toUpperCase() + $a.slice(1);
|
203
|
+
TimePeriod.prototype[$a] = 0;
|
204
|
+
TimePeriod.prototype["get" + $b] = gFn($a);
|
205
|
+
TimePeriod.prototype["set" + $b] = sFn($a);
|
206
|
+
}
|
207
|
+
|
208
|
+
if (arguments.length == 7) {
|
209
|
+
this.years = years;
|
210
|
+
this.months = months;
|
211
|
+
this.setDays(days);
|
212
|
+
this.setHours(hours);
|
213
|
+
this.setMinutes(minutes);
|
214
|
+
this.setSeconds(seconds);
|
215
|
+
this.setMilliseconds(milliseconds);
|
216
|
+
} else if (arguments.length == 2 && arguments[0] instanceof Date && arguments[1] instanceof Date) {
|
217
|
+
// startDate and endDate as arguments
|
218
|
+
|
219
|
+
var d1 = years.clone();
|
220
|
+
var d2 = months.clone();
|
221
|
+
|
222
|
+
var temp = d1.clone();
|
223
|
+
var orient = (d1 > d2) ? -1 : +1;
|
224
|
+
|
225
|
+
this.years = d2.getFullYear() - d1.getFullYear();
|
226
|
+
temp.addYears(this.years);
|
227
|
+
|
228
|
+
if (orient == +1) {
|
229
|
+
if (temp > d2) {
|
230
|
+
if (this.years !== 0) {
|
231
|
+
this.years--;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
} else {
|
235
|
+
if (temp < d2) {
|
236
|
+
if (this.years !== 0) {
|
237
|
+
this.years++;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
d1.addYears(this.years);
|
243
|
+
|
244
|
+
if (orient == +1) {
|
245
|
+
while (d1 < d2 && d1.clone().addDays(Date.getDaysInMonth(d1.getYear(), d1.getMonth()) ) < d2) {
|
246
|
+
d1.addMonths(1);
|
247
|
+
this.months++;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
else {
|
251
|
+
while (d1 > d2 && d1.clone().addDays(-d1.getDaysInMonth()) > d2) {
|
252
|
+
d1.addMonths(-1);
|
253
|
+
this.months--;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
var diff = d2 - d1;
|
258
|
+
|
259
|
+
if (diff !== 0) {
|
260
|
+
var ts = new TimeSpan(diff);
|
261
|
+
this.setDays(ts.getDays());
|
262
|
+
this.setHours(ts.getHours());
|
263
|
+
this.setMinutes(ts.getMinutes());
|
264
|
+
this.setSeconds(ts.getSeconds());
|
265
|
+
this.setMilliseconds(ts.getMilliseconds());
|
266
|
+
}
|
267
|
+
}
|
268
|
+
return this;
|
269
|
+
};
|