PageRenderTime 54ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/javascripts/datejs/src/globalization/sa-IN.js

https://bitbucket.org/hyperstudio/repertoire-chronos
JavaScript | 195 lines | 71 code | 14 blank | 110 comment | 0 complexity | 2cdbdace4b76a0e59c121b0df768d726 MD5 | raw file
  1. Date.CultureInfo = {
  2. /* Culture Name */
  3. name: "sa-IN",
  4. englishName: "Sanskrit (India)",
  5. nativeName: "संस्कृत (भारतम्)",
  6. /* Day Name Strings */
  7. dayNames: ["रविवासरः", "सोमवासरः", "मङ्गलवासरः", "बुधवासरः", "गुरुवासरः", "शुक्रवासरः", "शनिवासरः"],
  8. abbreviatedDayNames: ["रविवासरः", "सोमवासरः", "मङ्गलवासरः", "बुधवासरः", "गुरुवासरः", "शुक्रवासरः", "शनिवासरः"],
  9. shortestDayNames: ["र", "स", "म", "ब", "ग", "श", "श"],
  10. firstLetterDayNames: ["र", "स", "म", "ब", "ग", "श", "श"],
  11. /* Month Name Strings */
  12. monthNames: ["जनवरी", "फरवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितम्बर", "अक्तूबर", "नवम्बर", "दिसम्बर"],
  13. abbreviatedMonthNames: ["जनवरी", "फरवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितम्बर", "अक्तूबर", "नवम्बर", "दिसम्बर"],
  14. /* AM/PM Designators */
  15. amDesignator: "पूर्वाह्न",
  16. pmDesignator: "अपराह्न",
  17. firstDayOfWeek: 0,
  18. twoDigitYearMax: 2029,
  19. /**
  20. * The dateElementOrder is based on the order of the
  21. * format specifiers in the formatPatterns.DatePattern.
  22. *
  23. * Example:
  24. <pre>
  25. shortDatePattern dateElementOrder
  26. ------------------ ----------------
  27. "M/d/yyyy" "mdy"
  28. "dd/MM/yyyy" "dmy"
  29. "yyyy-MM-dd" "ymd"
  30. </pre>
  31. *
  32. * The correct dateElementOrder is required by the parser to
  33. * determine the expected order of the date elements in the
  34. * string being parsed.
  35. */
  36. dateElementOrder: "dmy",
  37. /* Standard date and time format patterns */
  38. formatPatterns: {
  39. shortDate: "dd-MM-yyyy",
  40. longDate: "dd MMMM yyyy dddd",
  41. shortTime: "HH:mm",
  42. longTime: "HH:mm:ss",
  43. fullDateTime: "dd MMMM yyyy dddd HH:mm:ss",
  44. sortableDateTime: "yyyy-MM-ddTHH:mm:ss",
  45. universalSortableDateTime: "yyyy-MM-dd HH:mm:ssZ",
  46. rfc1123: "ddd, dd MMM yyyy HH:mm:ss GMT",
  47. monthDay: "dd MMMM",
  48. yearMonth: "MMMM, yyyy"
  49. },
  50. /**
  51. * NOTE: If a string format is not parsing correctly, but
  52. * you would expect it parse, the problem likely lies below.
  53. *
  54. * The following regex patterns control most of the string matching
  55. * within the parser.
  56. *
  57. * The Month name and Day name patterns were automatically generated
  58. * and in general should be (mostly) correct.
  59. *
  60. * Beyond the month and day name patterns are natural language strings.
  61. * Example: "next", "today", "months"
  62. *
  63. * These natural language string may NOT be correct for this culture.
  64. * If they are not correct, please translate and edit this file
  65. * providing the correct regular expression pattern.
  66. *
  67. * If you modify this file, please post your revised CultureInfo file
  68. * to the Datejs Forum located at http://www.datejs.com/forums/.
  69. *
  70. * Please mark the subject of the post with [CultureInfo]. Example:
  71. * Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)
  72. *
  73. * We will add the modified patterns to the master source files.
  74. *
  75. * As well, please review the list of "Future Strings" section below.
  76. */
  77. regexPatterns: {
  78. jan: /^जनवर/i,
  79. feb: /^फरवर/i,
  80. mar: /^/i,
  81. apr: /^अप/i,
  82. may: /^मई/i,
  83. jun: /^/i,
  84. jul: /^/i,
  85. aug: /^अगस/i,
  86. sep: /^ितमबर/i,
  87. oct: /^अकबर/i,
  88. nov: /^नवमबर/i,
  89. dec: /^िसमबर/i,
  90. sun: /^(1)?/i,
  91. mon: /^(1)?/i,
  92. tue: /^(1)?/i,
  93. wed: /^(1)?/i,
  94. thu: /^(1)?/i,
  95. fri: /^(1)?/i,
  96. sat: /^(1)?/i,
  97. future: /^next/i,
  98. past: /^last|past|prev(ious)?/i,
  99. add: /^(\+|aft(er)?|from|hence)/i,
  100. subtract: /^(\-|bef(ore)?|ago)/i,
  101. yesterday: /^yes(terday)?/i,
  102. today: /^t(od(ay)?)?/i,
  103. tomorrow: /^tom(orrow)?/i,
  104. now: /^n(ow)?/i,
  105. millisecond: /^ms|milli(second)?s?/i,
  106. second: /^sec(ond)?s?/i,
  107. minute: /^mn|min(ute)?s?/i,
  108. hour: /^h(our)?s?/i,
  109. week: /^w(eek)?s?/i,
  110. month: /^m(onth)?s?/i,
  111. day: /^d(ay)?s?/i,
  112. year: /^y(ear)?s?/i,
  113. shortMeridian: /^(a|p)/i,
  114. longMeridian: /^(a\.?m?\.?|p\.?m?\.?)/i,
  115. 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,
  116. ordinalSuffix: /^\s*(st|nd|rd|th)/i,
  117. timeContext: /^\s*(\:|a(?!u|p)|p)/i
  118. },
  119. 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"}]
  120. };
  121. /********************
  122. ** Future Strings **
  123. ********************
  124. *
  125. * The following list of strings may not be currently being used, but
  126. * may be incorporated into the Datejs library later.
  127. *
  128. * We would appreciate any help translating the strings below.
  129. *
  130. * If you modify this file, please post your revised CultureInfo file
  131. * to the Datejs Forum located at http://www.datejs.com/forums/.
  132. *
  133. * Please mark the subject of the post with [CultureInfo]. Example:
  134. * Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)b
  135. *
  136. * English Name Translated
  137. * ------------------ -----------------
  138. * about about
  139. * ago ago
  140. * date date
  141. * time time
  142. * calendar calendar
  143. * show show
  144. * hourly hourly
  145. * daily daily
  146. * weekly weekly
  147. * bi-weekly bi-weekly
  148. * fortnight fortnight
  149. * monthly monthly
  150. * bi-monthly bi-monthly
  151. * quarter quarter
  152. * quarterly quarterly
  153. * yearly yearly
  154. * annual annual
  155. * annually annually
  156. * annum annum
  157. * again again
  158. * between between
  159. * after after
  160. * from now from now
  161. * repeat repeat
  162. * times times
  163. * per per
  164. * min (abbrev minute) min
  165. * morning morning
  166. * noon noon
  167. * night night
  168. * midnight midnight
  169. * mid-night mid-night
  170. * evening evening
  171. * final final
  172. * future future
  173. * spring spring
  174. * summer summer
  175. * fall fall
  176. * winter winter
  177. * end of end of
  178. * end end
  179. * long long
  180. * short short
  181. */