chrono-node 2.3.9 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/.idea/chrono.iml +13 -0
  2. package/.idea/compiler.xml +7 -0
  3. package/.idea/dictionaries/wanasit.xml +8 -0
  4. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  5. package/.idea/jsLibraryMappings.xml +6 -0
  6. package/.idea/jsLinters/eslint.xml +6 -0
  7. package/.idea/misc.xml +6 -0
  8. package/.idea/modules.xml +8 -0
  9. package/.idea/prettier.xml +6 -0
  10. package/.idea/vcs.xml +6 -0
  11. package/.idea/workspace.xml +320 -0
  12. package/README.md +1 -1
  13. package/benchmark/results/chrono.chart.html +111 -0
  14. package/coverage/clover.xml +4589 -0
  15. package/coverage/coverage-final.json +138 -0
  16. package/coverage/lcov-report/base.css +224 -0
  17. package/coverage/lcov-report/block-navigation.js +87 -0
  18. package/coverage/lcov-report/favicon.png +0 -0
  19. package/coverage/lcov-report/index.html +641 -0
  20. package/coverage/lcov-report/prettify.css +1 -0
  21. package/coverage/lcov-report/prettify.js +2 -0
  22. package/coverage/lcov-report/results.ts.html +701 -0
  23. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  24. package/coverage/lcov-report/sorter.js +196 -0
  25. package/coverage/lcov-report/src/calculation/index.html +131 -0
  26. package/coverage/lcov-report/src/calculation/mergingCalculation.ts.html +319 -0
  27. package/coverage/lcov-report/src/calculation/weeks.ts.html +199 -0
  28. package/coverage/lcov-report/src/calculation/yearCalculation.ts.html +194 -0
  29. package/coverage/lcov-report/src/calculation/years.ts.html +199 -0
  30. package/coverage/lcov-report/src/chrono.js.html +368 -0
  31. package/coverage/lcov-report/src/chrono.ts.html +649 -0
  32. package/coverage/lcov-report/src/common/abstractRefiners.ts.html +286 -0
  33. package/coverage/lcov-report/src/common/calculation/index.html +116 -0
  34. package/coverage/lcov-report/src/common/calculation/weekdays.ts.html +352 -0
  35. package/coverage/lcov-report/src/common/casualReferences.ts.html +412 -0
  36. package/coverage/lcov-report/src/common/index.html +131 -0
  37. package/coverage/lcov-report/src/common/parsers/AbstractParserWithWordBoundary.ts.html +214 -0
  38. package/coverage/lcov-report/src/common/parsers/AbstractTimeExpressionParser.ts.html +1384 -0
  39. package/coverage/lcov-report/src/common/parsers/ISOFormatParser.ts.html +340 -0
  40. package/coverage/lcov-report/src/common/parsers/SlashDateFormatParser.ts.html +385 -0
  41. package/coverage/lcov-report/src/common/parsers/index.html +161 -0
  42. package/coverage/lcov-report/src/common/refiners/AbstractMergeDateRangeRefiner.ts.html +268 -0
  43. package/coverage/lcov-report/src/common/refiners/AbstractMergeDateTimeRefiner.ts.html +172 -0
  44. package/coverage/lcov-report/src/common/refiners/ExtractTimezoneAbbrRefiner.ts.html +883 -0
  45. package/coverage/lcov-report/src/common/refiners/ExtractTimezoneOffsetRefiner.ts.html +226 -0
  46. package/coverage/lcov-report/src/common/refiners/ForwardDateRefiner.ts.html +334 -0
  47. package/coverage/lcov-report/src/common/refiners/MergeWeekdayComponentRefiner.ts.html +187 -0
  48. package/coverage/lcov-report/src/common/refiners/OverlapRemovalRefiner.ts.html +199 -0
  49. package/coverage/lcov-report/src/common/refiners/UnlikelyFormatFilter.ts.html +265 -0
  50. package/coverage/lcov-report/src/common/refiners/index.html +221 -0
  51. package/coverage/lcov-report/src/configurations.ts.html +154 -0
  52. package/coverage/lcov-report/src/debugging.ts.html +154 -0
  53. package/coverage/lcov-report/src/index.html +191 -0
  54. package/coverage/lcov-report/src/index.ts.html +517 -0
  55. package/coverage/lcov-report/src/locales/de/constants.ts.html +664 -0
  56. package/coverage/lcov-report/src/locales/de/index.html +131 -0
  57. package/coverage/lcov-report/src/locales/de/index.ts.html +238 -0
  58. package/coverage/lcov-report/src/locales/de/parsers/DECasualDateParser.ts.html +325 -0
  59. package/coverage/lcov-report/src/locales/de/parsers/DECasualTimeParser.ts.html +325 -0
  60. package/coverage/lcov-report/src/locales/de/parsers/DEMonthNameLittleEndianParser.ts.html +268 -0
  61. package/coverage/lcov-report/src/locales/de/parsers/DESpecificTimeExpressionParser.ts.html +535 -0
  62. package/coverage/lcov-report/src/locales/de/parsers/DETimeExpressionParser.ts.html +151 -0
  63. package/coverage/lcov-report/src/locales/de/parsers/DETimeUnitRelativeFormatParser.ts.html +211 -0
  64. package/coverage/lcov-report/src/locales/de/parsers/DEWeekdayParser.ts.html +232 -0
  65. package/coverage/lcov-report/src/locales/de/parsers/index.html +206 -0
  66. package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateRangeRefiner.ts.html +130 -0
  67. package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateTimeRefiner.ts.html +115 -0
  68. package/coverage/lcov-report/src/locales/de/refiners/index.html +131 -0
  69. package/coverage/lcov-report/src/locales/en/constants.ts.html +841 -0
  70. package/coverage/lcov-report/src/locales/en/index.html +131 -0
  71. package/coverage/lcov-report/src/locales/en/index.ts.html +382 -0
  72. package/coverage/lcov-report/src/locales/en/parsers/ENCasualDateParser.ts.html +244 -0
  73. package/coverage/lcov-report/src/locales/en/parsers/ENCasualTimeParser.ts.html +238 -0
  74. package/coverage/lcov-report/src/locales/en/parsers/ENCasualYearMonthDayParser.ts.html +232 -0
  75. package/coverage/lcov-report/src/locales/en/parsers/ENDeadlineFormatParser.ts.html +311 -0
  76. package/coverage/lcov-report/src/locales/en/parsers/ENISOFormatParser.ts.html +317 -0
  77. package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameLittleEndianParser.ts.html +292 -0
  78. package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameMiddleEndianParser.ts.html +319 -0
  79. package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameParser.ts.html +271 -0
  80. package/coverage/lcov-report/src/locales/en/parsers/ENRelativeDateFormatParser.ts.html +292 -0
  81. package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatParser.ts.html +443 -0
  82. package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatStartWithYearParser.ts.html +221 -0
  83. package/coverage/lcov-report/src/locales/en/parsers/ENSlashMonthFormatParser.ts.html +163 -0
  84. package/coverage/lcov-report/src/locales/en/parsers/ENTimeExpressionParser.ts.html +250 -0
  85. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts.html +160 -0
  86. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts.html +166 -0
  87. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitDeadlineFormatParser.ts.html +149 -0
  88. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts.html +166 -0
  89. package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts.html +163 -0
  90. package/coverage/lcov-report/src/locales/en/parsers/ENWeekdayParser.ts.html +229 -0
  91. package/coverage/lcov-report/src/locales/en/parsers/index.html +311 -0
  92. package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateRangeRefiner.ts.html +136 -0
  93. package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateTimeRefiner.ts.html +124 -0
  94. package/coverage/lcov-report/src/locales/en/refiners/ENMergeRelativeDateRefiner.ts.html +259 -0
  95. package/coverage/lcov-report/src/locales/en/refiners/index.html +146 -0
  96. package/coverage/lcov-report/src/locales/fr/constants.ts.html +637 -0
  97. package/coverage/lcov-report/src/locales/fr/index.html +131 -0
  98. package/coverage/lcov-report/src/locales/fr/index.ts.html +280 -0
  99. package/coverage/lcov-report/src/locales/fr/parsers/FRCasualDateParser.ts.html +223 -0
  100. package/coverage/lcov-report/src/locales/fr/parsers/FRCasualTimeParser.ts.html +232 -0
  101. package/coverage/lcov-report/src/locales/fr/parsers/FRMonthNameLittleEndianParser.ts.html +277 -0
  102. package/coverage/lcov-report/src/locales/fr/parsers/FRSpecificTimeExpressionParser.ts.html +484 -0
  103. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeExpressionParser.ts.html +151 -0
  104. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitAgoFormatParser.ts.html +151 -0
  105. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitRelativeFormatParser.ts.html +214 -0
  106. package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitWithinFormatParser.ts.html +130 -0
  107. package/coverage/lcov-report/src/locales/fr/parsers/FRWeekdayParser.ts.html +223 -0
  108. package/coverage/lcov-report/src/locales/fr/parsers/index.html +236 -0
  109. package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateRangeRefiner.ts.html +130 -0
  110. package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateTimeRefiner.ts.html +115 -0
  111. package/coverage/lcov-report/src/locales/fr/refiners/index.html +131 -0
  112. package/coverage/lcov-report/src/locales/ja/constants.ts.html +157 -0
  113. package/coverage/lcov-report/src/locales/ja/index.html +131 -0
  114. package/coverage/lcov-report/src/locales/ja/index.ts.html +214 -0
  115. package/coverage/lcov-report/src/locales/ja/parsers/JPCasualDateParser.ts.html +217 -0
  116. package/coverage/lcov-report/src/locales/ja/parsers/JPStandardParser.ts.html +247 -0
  117. package/coverage/lcov-report/src/locales/ja/parsers/index.html +131 -0
  118. package/coverage/lcov-report/src/locales/ja/refiners/JPMergeDateRangeRefiner.ts.html +124 -0
  119. package/coverage/lcov-report/src/locales/ja/refiners/index.html +116 -0
  120. package/coverage/lcov-report/src/locales/nl/constants.ts.html +796 -0
  121. package/coverage/lcov-report/src/locales/nl/index.html +131 -0
  122. package/coverage/lcov-report/src/locales/nl/index.ts.html +304 -0
  123. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateParser.ts.html +181 -0
  124. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateTimeParser.ts.html +310 -0
  125. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualTimeParser.ts.html +265 -0
  126. package/coverage/lcov-report/src/locales/nl/parsers/NLCasualYearMonthDayParser.ts.html +232 -0
  127. package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameMiddleEndianParser.ts.html +349 -0
  128. package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameParser.ts.html +235 -0
  129. package/coverage/lcov-report/src/locales/nl/parsers/NLRelativeDateFormatParser.ts.html +295 -0
  130. package/coverage/lcov-report/src/locales/nl/parsers/NLSlashMonthFormatParser.ts.html +163 -0
  131. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeExpressionParser.ts.html +163 -0
  132. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitAgoFormatParser.ts.html +163 -0
  133. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.ts.html +166 -0
  134. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitLaterFormatParser.ts.html +166 -0
  135. package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitWithinFormatParser.ts.html +130 -0
  136. package/coverage/lcov-report/src/locales/nl/parsers/NLWeekdayParser.ts.html +223 -0
  137. package/coverage/lcov-report/src/locales/nl/parsers/index.html +311 -0
  138. package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts.html +136 -0
  139. package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts.html +124 -0
  140. package/coverage/lcov-report/src/locales/nl/refiners/index.html +131 -0
  141. package/coverage/lcov-report/src/locales/pt/constants.ts.html +343 -0
  142. package/coverage/lcov-report/src/locales/pt/index.html +131 -0
  143. package/coverage/lcov-report/src/locales/pt/index.ts.html +256 -0
  144. package/coverage/lcov-report/src/locales/pt/parsers/PTCasualDateParser.ts.html +181 -0
  145. package/coverage/lcov-report/src/locales/pt/parsers/PTCasualTimeParser.ts.html +226 -0
  146. package/coverage/lcov-report/src/locales/pt/parsers/PTMonthNameLittleEndianParser.ts.html +265 -0
  147. package/coverage/lcov-report/src/locales/pt/parsers/PTTimeExpressionParser.ts.html +145 -0
  148. package/coverage/lcov-report/src/locales/pt/parsers/PTWeekdayParser.ts.html +235 -0
  149. package/coverage/lcov-report/src/locales/pt/parsers/index.html +176 -0
  150. package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateRangeRefiner.ts.html +130 -0
  151. package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateTimeRefiner.ts.html +115 -0
  152. package/coverage/lcov-report/src/locales/pt/refiners/index.html +131 -0
  153. package/coverage/lcov-report/src/locales/ru/constants.ts.html +1111 -0
  154. package/coverage/lcov-report/src/locales/ru/index.html +131 -0
  155. package/coverage/lcov-report/src/locales/ru/index.ts.html +337 -0
  156. package/coverage/lcov-report/src/locales/ru/parsers/RUCasualDateParser.ts.html +217 -0
  157. package/coverage/lcov-report/src/locales/ru/parsers/RUCasualTimeParser.ts.html +253 -0
  158. package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameLittleEndianParser.ts.html +301 -0
  159. package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameParser.ts.html +268 -0
  160. package/coverage/lcov-report/src/locales/ru/parsers/RURelativeDateFormatParser.ts.html +310 -0
  161. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeExpressionParser.ts.html +277 -0
  162. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitAgoFormatParser.ts.html +157 -0
  163. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.ts.html +187 -0
  164. package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitWithinFormatParser.ts.html +157 -0
  165. package/coverage/lcov-report/src/locales/ru/parsers/RUWeekdayParser.ts.html +256 -0
  166. package/coverage/lcov-report/src/locales/ru/parsers/index.html +251 -0
  167. package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateRangeRefiner.ts.html +124 -0
  168. package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateTimeRefiner.ts.html +124 -0
  169. package/coverage/lcov-report/src/locales/ru/refiners/index.html +131 -0
  170. package/coverage/lcov-report/src/locales/zh/hans/constants.ts.html +241 -0
  171. package/coverage/lcov-report/src/locales/zh/hans/index.html +131 -0
  172. package/coverage/lcov-report/src/locales/zh/hans/index.ts.html +271 -0
  173. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansCasualDateParser.ts.html +469 -0
  174. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDateParser.ts.html +310 -0
  175. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.ts.html +328 -0
  176. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.ts.html +292 -0
  177. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansTimeExpressionParser.ts.html +1357 -0
  178. package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansWeekdayParser.ts.html +223 -0
  179. package/coverage/lcov-report/src/locales/zh/hans/parsers/index.html +191 -0
  180. package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.ts.html +106 -0
  181. package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.ts.html +106 -0
  182. package/coverage/lcov-report/src/locales/zh/hans/refiners/index.html +131 -0
  183. package/coverage/lcov-report/src/locales/zh/hant/constants.ts.html +244 -0
  184. package/coverage/lcov-report/src/locales/zh/hant/index.html +131 -0
  185. package/coverage/lcov-report/src/locales/zh/hant/index.ts.html +274 -0
  186. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantCasualDateParser.ts.html +469 -0
  187. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDateParser.ts.html +289 -0
  188. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.ts.html +328 -0
  189. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.ts.html +292 -0
  190. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantTimeExpressionParser.ts.html +1357 -0
  191. package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantWeekdayParser.ts.html +223 -0
  192. package/coverage/lcov-report/src/locales/zh/hant/parsers/index.html +191 -0
  193. package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.ts.html +106 -0
  194. package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.ts.html +106 -0
  195. package/coverage/lcov-report/src/locales/zh/hant/refiners/index.html +131 -0
  196. package/coverage/lcov-report/src/locales/zh/index.html +116 -0
  197. package/coverage/lcov-report/src/locales/zh/index.ts.html +91 -0
  198. package/coverage/lcov-report/src/options.js.html +1085 -0
  199. package/coverage/lcov-report/src/parsers/de/DECasualDateParser.js.html +368 -0
  200. package/coverage/lcov-report/src/parsers/de/DEDeadlineFormatParser.js.html +374 -0
  201. package/coverage/lcov-report/src/parsers/de/DEMonthNameLittleEndianParser.js.html +347 -0
  202. package/coverage/lcov-report/src/parsers/de/DEMonthNameParser.js.html +329 -0
  203. package/coverage/lcov-report/src/parsers/de/DESlashDateFormatParser.js.html +398 -0
  204. package/coverage/lcov-report/src/parsers/de/DETimeAgoFormatParser.js.html +401 -0
  205. package/coverage/lcov-report/src/parsers/de/DETimeExpressionParser.js.html +836 -0
  206. package/coverage/lcov-report/src/parsers/de/DEWeekdayParser.js.html +338 -0
  207. package/coverage/lcov-report/src/parsers/de/index.html +216 -0
  208. package/coverage/lcov-report/src/parsers/en/ENCasualDateParser.js.html +275 -0
  209. package/coverage/lcov-report/src/parsers/en/ENCasualTimeParser.js.html +242 -0
  210. package/coverage/lcov-report/src/parsers/en/ENDeadlineFormatParser.js.html +359 -0
  211. package/coverage/lcov-report/src/parsers/en/ENISOFormatParser.js.html +389 -0
  212. package/coverage/lcov-report/src/parsers/en/ENMonthNameLittleEndianParser.js.html +416 -0
  213. package/coverage/lcov-report/src/parsers/en/ENMonthNameMiddleEndianParser.js.html +437 -0
  214. package/coverage/lcov-report/src/parsers/en/ENMonthNameParser.js.html +320 -0
  215. package/coverage/lcov-report/src/parsers/en/ENRelativeDateFormatParser.js.html +518 -0
  216. package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatParser.js.html +479 -0
  217. package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatStartWithYearParser.js.html +245 -0
  218. package/coverage/lcov-report/src/parsers/en/ENSlashMonthFormatParser.js.html +221 -0
  219. package/coverage/lcov-report/src/parsers/en/ENTimeAgoFormatParser.js.html +287 -0
  220. package/coverage/lcov-report/src/parsers/en/ENTimeExpressionParser.js.html +869 -0
  221. package/coverage/lcov-report/src/parsers/en/ENTimeLaterFormatParser.js.html +305 -0
  222. package/coverage/lcov-report/src/parsers/en/ENWeekdayParser.js.html +356 -0
  223. package/coverage/lcov-report/src/parsers/en/index.html +321 -0
  224. package/coverage/lcov-report/src/parsers/es/ESCasualDateParser.js.html +452 -0
  225. package/coverage/lcov-report/src/parsers/es/ESDeadlineFormatParser.js.html +260 -0
  226. package/coverage/lcov-report/src/parsers/es/ESMonthNameLittleEndianParser.js.html +338 -0
  227. package/coverage/lcov-report/src/parsers/es/ESSlashDateFormatParser.js.html +419 -0
  228. package/coverage/lcov-report/src/parsers/es/ESTimeAgoFormatParser.js.html +341 -0
  229. package/coverage/lcov-report/src/parsers/es/ESTimeExpressionParser.js.html +782 -0
  230. package/coverage/lcov-report/src/parsers/es/ESWeekdayParser.js.html +260 -0
  231. package/coverage/lcov-report/src/parsers/es/index.html +201 -0
  232. package/coverage/lcov-report/src/parsers/fr/FRCasualDateParser.js.html +311 -0
  233. package/coverage/lcov-report/src/parsers/fr/FRDeadlineFormatParser.js.html +359 -0
  234. package/coverage/lcov-report/src/parsers/fr/FRMonthNameLittleEndianParser.js.html +338 -0
  235. package/coverage/lcov-report/src/parsers/fr/FRRelativeDateFormatParser.js.html +545 -0
  236. package/coverage/lcov-report/src/parsers/fr/FRSlashDateFormatParser.js.html +437 -0
  237. package/coverage/lcov-report/src/parsers/fr/FRTimeAgoFormatParser.js.html +341 -0
  238. package/coverage/lcov-report/src/parsers/fr/FRTimeExpressionParser.js.html +803 -0
  239. package/coverage/lcov-report/src/parsers/fr/FRWeekdayParser.js.html +257 -0
  240. package/coverage/lcov-report/src/parsers/fr/index.html +216 -0
  241. package/coverage/lcov-report/src/parsers/index.html +111 -0
  242. package/coverage/lcov-report/src/parsers/ja/JPCasualDateParser.js.html +245 -0
  243. package/coverage/lcov-report/src/parsers/ja/JPStandardParser.js.html +293 -0
  244. package/coverage/lcov-report/src/parsers/ja/index.html +126 -0
  245. package/coverage/lcov-report/src/parsers/nl/NLCasualDateParser.js.html +395 -0
  246. package/coverage/lcov-report/src/parsers/nl/NLCasualTimeParser.js.html +278 -0
  247. package/coverage/lcov-report/src/parsers/nl/NLMonthNameLittleEndianParser.js.html +383 -0
  248. package/coverage/lcov-report/src/parsers/nl/NLMonthNameParser.js.html +320 -0
  249. package/coverage/lcov-report/src/parsers/nl/NLSlashDateFormatParser.js.html +389 -0
  250. package/coverage/lcov-report/src/parsers/nl/NLTimeExpressionParser.js.html +836 -0
  251. package/coverage/lcov-report/src/parsers/nl/NLWeekdayParser.js.html +377 -0
  252. package/coverage/lcov-report/src/parsers/nl/index.html +201 -0
  253. package/coverage/lcov-report/src/parsers/parser.js.html +500 -0
  254. package/coverage/lcov-report/src/parsers/pt/PTCasualDateParser.js.html +449 -0
  255. package/coverage/lcov-report/src/parsers/pt/PTDeadlineFormatParser.js.html +263 -0
  256. package/coverage/lcov-report/src/parsers/pt/PTMonthNameLittleEndianParser.js.html +338 -0
  257. package/coverage/lcov-report/src/parsers/pt/PTSlashDateFormatParser.js.html +419 -0
  258. package/coverage/lcov-report/src/parsers/pt/PTTimeAgoFormatParser.js.html +341 -0
  259. package/coverage/lcov-report/src/parsers/pt/PTTimeExpressionParser.js.html +782 -0
  260. package/coverage/lcov-report/src/parsers/pt/PTWeekdayParser.js.html +260 -0
  261. package/coverage/lcov-report/src/parsers/pt/index.html +201 -0
  262. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantCasualDateParser.js.html +494 -0
  263. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDateParser.js.html +281 -0
  264. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDeadlineFormatParser.js.html +353 -0
  265. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantTimeExpressionParser.js.html +1346 -0
  266. package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantWeekdayParser.js.html +239 -0
  267. package/coverage/lcov-report/src/parsers/zh-Hant/index.html +171 -0
  268. package/coverage/lcov-report/src/refiners/ExtractTimezoneAbbrRefiner.js.html +245 -0
  269. package/coverage/lcov-report/src/refiners/ExtractTimezoneOffsetRefiner.js.html +218 -0
  270. package/coverage/lcov-report/src/refiners/ForwardDateRefiner.js.html +239 -0
  271. package/coverage/lcov-report/src/refiners/OverlapRemovalRefiner.js.html +200 -0
  272. package/coverage/lcov-report/src/refiners/UnlikelyFormatFilter.js.html +131 -0
  273. package/coverage/lcov-report/src/refiners/de/DEMergeDateRangeRefiner.js.html +116 -0
  274. package/coverage/lcov-report/src/refiners/de/DEMergeDateTimeRefiner.js.html +377 -0
  275. package/coverage/lcov-report/src/refiners/de/index.html +126 -0
  276. package/coverage/lcov-report/src/refiners/en/ENMergeDateRangeRefiner.js.html +416 -0
  277. package/coverage/lcov-report/src/refiners/en/ENMergeDateTimeRefiner.js.html +533 -0
  278. package/coverage/lcov-report/src/refiners/en/ENPrioritizeSpecificDateRefiner.js.html +422 -0
  279. package/coverage/lcov-report/src/refiners/en/index.html +141 -0
  280. package/coverage/lcov-report/src/refiners/fr/FRMergeDateRangeRefiner.js.html +374 -0
  281. package/coverage/lcov-report/src/refiners/fr/FRMergeDateTimeRefiner.js.html +395 -0
  282. package/coverage/lcov-report/src/refiners/fr/index.html +126 -0
  283. package/coverage/lcov-report/src/refiners/index.html +186 -0
  284. package/coverage/lcov-report/src/refiners/ja/JPMergeDateRangeRefiner.js.html +113 -0
  285. package/coverage/lcov-report/src/refiners/ja/index.html +111 -0
  286. package/coverage/lcov-report/src/refiners/nl/NLMergeDateRangeRefiner.js.html +116 -0
  287. package/coverage/lcov-report/src/refiners/nl/NLMergeDateTimeRefiner.js.html +362 -0
  288. package/coverage/lcov-report/src/refiners/nl/index.html +126 -0
  289. package/coverage/lcov-report/src/refiners/refiner.js.html +239 -0
  290. package/coverage/lcov-report/src/result.js.html +545 -0
  291. package/coverage/lcov-report/src/results.ts.html +916 -0
  292. package/coverage/lcov-report/src/timezone.ts.html +700 -0
  293. package/coverage/lcov-report/src/utils/DE.js.html +308 -0
  294. package/coverage/lcov-report/src/utils/EN.js.html +596 -0
  295. package/coverage/lcov-report/src/utils/ES.js.html +254 -0
  296. package/coverage/lcov-report/src/utils/FR.js.html +302 -0
  297. package/coverage/lcov-report/src/utils/JP.js.html +215 -0
  298. package/coverage/lcov-report/src/utils/NL.js.html +620 -0
  299. package/coverage/lcov-report/src/utils/PT.js.html +263 -0
  300. package/coverage/lcov-report/src/utils/ParserWithWordEndingDetection.ts.html +176 -0
  301. package/coverage/lcov-report/src/utils/ZH-Hant.js.html +236 -0
  302. package/coverage/lcov-report/src/utils/dayjs.ts.html +223 -0
  303. package/coverage/lcov-report/src/utils/index.html +146 -0
  304. package/coverage/lcov-report/src/utils/pattern.ts.html +175 -0
  305. package/coverage/lcov-report/src/utils/timeunits.ts.html +199 -0
  306. package/coverage/lcov-report/test/index.html +116 -0
  307. package/coverage/lcov-report/test/test_util.js.html +299 -0
  308. package/coverage/lcov-report/test/test_util.ts.html +490 -0
  309. package/coverage/lcov.info +7750 -0
  310. package/dist/chrono.js.map +1 -1
  311. package/dist/common/calculation/weekdays.d.ts +7 -0
  312. package/dist/common/calculation/weekdays.js +68 -0
  313. package/dist/common/calculation/weekdays.js.map +1 -0
  314. package/dist/common/parsers/SlashDateFormatParser.js +5 -3
  315. package/dist/common/parsers/SlashDateFormatParser.js.map +1 -1
  316. package/dist/common/refiners/AbstractMergeDateTimeRefiner.d.ts +1 -1
  317. package/dist/common/refiners/AbstractMergeDateTimeRefiner.js +2 -2
  318. package/dist/common/refiners/AbstractMergeDateTimeRefiner.js.map +1 -1
  319. package/dist/common/refiners/ForwardDateRefiner.js +12 -0
  320. package/dist/common/refiners/ForwardDateRefiner.js.map +1 -1
  321. package/dist/index.d.ts +9 -0
  322. package/dist/index.js +11 -1
  323. package/dist/index.js.map +1 -1
  324. package/dist/locales/de/parsers/DEWeekdayParser.js +2 -8
  325. package/dist/locales/de/parsers/DEWeekdayParser.js.map +1 -1
  326. package/dist/locales/en/constants.d.ts +2 -1
  327. package/dist/locales/en/constants.js.map +1 -1
  328. package/dist/locales/en/parsers/ENCasualTimeParser.js +4 -4
  329. package/dist/locales/en/parsers/ENCasualTimeParser.js.map +1 -1
  330. package/dist/locales/en/parsers/ENWeekdayParser.js +3 -9
  331. package/dist/locales/en/parsers/ENWeekdayParser.js.map +1 -1
  332. package/dist/locales/fr/parsers/FRWeekdayParser.js +4 -10
  333. package/dist/locales/fr/parsers/FRWeekdayParser.js.map +1 -1
  334. package/dist/locales/nl/parsers/NLWeekdayParser.js +3 -9
  335. package/dist/locales/nl/parsers/NLWeekdayParser.js.map +1 -1
  336. package/dist/locales/pt/parsers/PTWeekdayParser.js +4 -10
  337. package/dist/locales/pt/parsers/PTWeekdayParser.js.map +1 -1
  338. package/dist/locales/ru/constants.js +4 -5
  339. package/dist/locales/ru/constants.js.map +1 -1
  340. package/dist/locales/ru/parsers/RUWeekdayParser.js +3 -9
  341. package/dist/locales/ru/parsers/RUWeekdayParser.js.map +1 -1
  342. package/dist/locales/ru/refiners/RUMergeDateRangeRefiner.d.ts +1 -1
  343. package/dist/locales/ru/refiners/RUMergeDateRangeRefiner.js +2 -2
  344. package/dist/locales/ru/refiners/RUMergeDateRangeRefiner.js.map +1 -1
  345. package/dist/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js +26 -26
  346. package/dist/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js.map +1 -1
  347. package/dist/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js +26 -26
  348. package/dist/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js.map +1 -1
  349. package/dist/results.d.ts +2 -1
  350. package/dist/results.js +14 -10
  351. package/dist/results.js.map +1 -1
  352. package/dist/utils/dayjs.d.ts +2 -0
  353. package/dist/utils/dayjs.js +13 -1
  354. package/dist/utils/dayjs.js.map +1 -1
  355. package/docs/assets/css/main.css +2660 -0
  356. package/docs/assets/images/icons.png +0 -0
  357. package/docs/assets/images/icons@2x.png +0 -0
  358. package/docs/assets/images/widgets.png +0 -0
  359. package/docs/assets/images/widgets@2x.png +0 -0
  360. package/docs/assets/js/main.js +248 -0
  361. package/docs/assets/js/search.js +1 -0
  362. package/docs/classes/chrono.html +377 -0
  363. package/docs/enums/meridiem.html +191 -0
  364. package/docs/index.html +329 -0
  365. package/docs/interfaces/parsedcomponents.html +270 -0
  366. package/docs/interfaces/parsedresult.html +283 -0
  367. package/docs/interfaces/parser.html +240 -0
  368. package/docs/interfaces/parsingoption.html +218 -0
  369. package/docs/interfaces/refiner.html +218 -0
  370. package/docs/modules/de.html +298 -0
  371. package/docs/modules/en.html +361 -0
  372. package/docs/modules/fr.html +248 -0
  373. package/docs/modules/ja.html +248 -0
  374. package/docs/modules/nl.html +275 -0
  375. package/docs/modules/pt.html +248 -0
  376. package/package.json +1 -1
  377. package/src/chrono.ts +3 -1
  378. package/src/common/calculation/weekdays.ts +89 -0
  379. package/src/common/parsers/SlashDateFormatParser.ts +7 -6
  380. package/src/common/refiners/AbstractMergeDateTimeRefiner.ts +1 -1
  381. package/src/common/refiners/ForwardDateRefiner.ts +13 -0
  382. package/src/index.ts +10 -0
  383. package/src/locales/de/parsers/DEWeekdayParser.ts +2 -8
  384. package/src/locales/en/constants.ts +2 -1
  385. package/src/locales/en/parsers/ENCasualTimeParser.ts +6 -5
  386. package/src/locales/en/parsers/ENWeekdayParser.ts +3 -9
  387. package/src/locales/fr/parsers/FRWeekdayParser.ts +4 -10
  388. package/src/locales/nl/parsers/NLWeekdayParser.ts +3 -9
  389. package/src/locales/pt/parsers/PTWeekdayParser.ts +4 -10
  390. package/src/locales/ru/constants.ts +4 -6
  391. package/src/locales/ru/parsers/RUWeekdayParser.ts +3 -9
  392. package/src/locales/ru/refiners/RUMergeDateRangeRefiner.ts +1 -1
  393. package/src/locales/zh/hans/parsers/ZHHansTimeExpressionParser.ts +26 -26
  394. package/src/locales/zh/hant/parsers/ZHHantTimeExpressionParser.ts +26 -26
  395. package/src/results.ts +27 -15
  396. package/src/utils/dayjs.ts +12 -0
  397. package/test/calculation.test.ts +116 -0
  398. package/test/en/en.test.ts +10 -0
  399. package/test/en/en_casual.test.ts +7 -0
  400. package/test/en/en_slash.test.ts +12 -11
  401. package/test/en/en_time_exp.test.ts +53 -0
  402. package/test/en/en_weekday.test.ts +116 -1
  403. package/test/en/negative_cases.test.ts +11 -0
  404. package/test/zh/zh_hans_time_exp.test.ts +15 -0
  405. package/test/zh/zh_hant_time_exp.test.ts +14 -0
  406. package/src/calculation/weeks.ts +0 -38
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
6
+ <excludeFolder url="file://$MODULE_DIR$/coverage" />
7
+ <excludeFolder url="file://$MODULE_DIR$/dist" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ <orderEntry type="library" name="@types/jest" level="application" />
12
+ </component>
13
+ </module>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="TypeScriptCompiler">
4
+ <option name="enableServiceForProjectsWithoutConfig" value="false" />
5
+ <option name="useService" value="false" />
6
+ </component>
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="wanasit">
3
+ <words>
4
+ <w>chrono</w>
5
+ <w>meridiem</w>
6
+ </words>
7
+ </dictionary>
8
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptLibraryMappings">
4
+ <file url="PROJECT" libraries="{@types/jest}" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="EslintConfiguration">
4
+ <option name="fix-on-save" value="true" />
5
+ </component>
6
+ </project>
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="FLOW" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/chrono.iml" filepath="$PROJECT_DIR$/.idea/chrono.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myRunOnSave" value="true" />
5
+ </component>
6
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,320 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AnalysisUIOptions">
4
+ <option name="ANALYZE_TEST_SOURCES" value="false" />
5
+ <option name="CUSTOM_SCOPE_NAME" value="Project Production Files" />
6
+ </component>
7
+ <component name="AutoImportSettings">
8
+ <option name="autoReloadType" value="SELECTIVE" />
9
+ </component>
10
+ <component name="ChangeListManager">
11
+ <list default="true" id="2e0b76bb-7462-4a34-aa1d-16a9ba3798d7" name="Default Changelist" comment="">
12
+ <change afterPath="$PROJECT_DIR$/.npmignore" afterDir="false" />
13
+ </list>
14
+ <option name="SHOW_DIALOG" value="false" />
15
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
16
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
17
+ <option name="LAST_RESOLUTION" value="IGNORE" />
18
+ </component>
19
+ <component name="FileTemplateManagerImpl">
20
+ <option name="RECENT_TEMPLATES">
21
+ <list>
22
+ <option value="HTML File" />
23
+ <option value="TypeScript File" />
24
+ <option value="JavaScript File" />
25
+ </list>
26
+ </option>
27
+ </component>
28
+ <component name="Git.Settings">
29
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
30
+ </component>
31
+ <component name="GitSEFilterConfiguration">
32
+ <file-type-list>
33
+ <filtered-out-file-type name="LOCAL_BRANCH" />
34
+ <filtered-out-file-type name="REMOTE_BRANCH" />
35
+ <filtered-out-file-type name="TAG" />
36
+ <filtered-out-file-type name="COMMIT_BY_MESSAGE" />
37
+ </file-type-list>
38
+ </component>
39
+ <component name="ProjectId" id="1ZTXLSSDQzWU7y8yHAVTj77ZXsw" />
40
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
41
+ <component name="ProjectViewState">
42
+ <option name="hideEmptyMiddlePackages" value="true" />
43
+ <option name="showLibraryContents" value="true" />
44
+ </component>
45
+ <component name="PropertiesComponent">
46
+ <property name="DefaultHtmlFileTemplate" value="HTML File" />
47
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
48
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
49
+ <property name="WebServerToolWindowFactoryState" value="false" />
50
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/test/zh-hant" />
51
+ <property name="node.js.detected.package.eslint" value="true" />
52
+ <property name="node.js.detected.package.standard" value="true" />
53
+ <property name="node.js.detected.package.tslint" value="true" />
54
+ <property name="node.js.path.for.package.eslint" value="project" />
55
+ <property name="node.js.path.for.package.standard" value="project" />
56
+ <property name="node.js.path.for.package.tslint" value="project" />
57
+ <property name="node.js.selected.package.eslint" value="(autodetect)" />
58
+ <property name="node.js.selected.package.standard" value="" />
59
+ <property name="node.js.selected.package.tslint" value="(autodetect)" />
60
+ <property name="nodejs.jest.jest_package" value="$PROJECT_DIR$/node_modules/jest" />
61
+ <property name="nodejs_package_manager_path" value="npm" />
62
+ <property name="prettierjs.PrettierConfiguration.Package" value="$PROJECT_DIR$/node_modules/prettier" />
63
+ <property name="run.code.analysis.last.selected.profile" value="pProject Default" />
64
+ <property name="settings.editor.selected.configurable" value="settings.javascript.linters.eslint" />
65
+ <property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
66
+ <property name="vue.rearranger.settings.migration" value="true" />
67
+ </component>
68
+ <component name="RecentsManager">
69
+ <key name="CopyFile.RECENT_KEYS">
70
+ <recent name="$PROJECT_DIR$/test/zh-hant" />
71
+ <recent name="$PROJECT_DIR$/benchmark" />
72
+ <recent name="$PROJECT_DIR$/test" />
73
+ <recent name="$PROJECT_DIR$/test/en" />
74
+ <recent name="$PROJECT_DIR$/src/utils" />
75
+ </key>
76
+ <key name="MoveFile.RECENT_KEYS">
77
+ <recent name="$PROJECT_DIR$" />
78
+ <recent name="$PROJECT_DIR$/examples/example_nodejs" />
79
+ <recent name="$PROJECT_DIR$/src/common/calculation" />
80
+ <recent name="$PROJECT_DIR$/src/calculation" />
81
+ <recent name="$PROJECT_DIR$/src/locales/zh-hant/hant" />
82
+ </key>
83
+ </component>
84
+ <component name="RunManager" selected="Jest.Test - Skip impossible dates/times">
85
+ <configuration name="All Tests" type="JavaScriptTestRunnerJest" nameIsGenerated="true">
86
+ <node-interpreter value="project" />
87
+ <node-options value="" />
88
+ <jest-package value="$PROJECT_DIR$/node_modules/jest" />
89
+ <working-dir value="$PROJECT_DIR$" />
90
+ <envs />
91
+ <scope-kind value="ALL" />
92
+ <method v="2" />
93
+ </configuration>
94
+ <configuration name="Test - Skip impossible dates/times" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
95
+ <node-interpreter value="project" />
96
+ <node-options value="" />
97
+ <jest-package value="$PROJECT_DIR$/node_modules/jest" />
98
+ <working-dir value="$PROJECT_DIR$" />
99
+ <envs />
100
+ <scope-kind value="TEST" />
101
+ <test-file value="$PROJECT_DIR$/test/en/negative_cases.test.ts" />
102
+ <test-names>
103
+ <test-name value="Test - Skip impossible dates/times" />
104
+ </test-names>
105
+ <method v="2" />
106
+ </configuration>
107
+ <configuration name="Test - Skip random non-date patterns" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
108
+ <node-interpreter value="project" />
109
+ <node-options value="" />
110
+ <jest-package value="$PROJECT_DIR$/node_modules/jest" />
111
+ <working-dir value="$PROJECT_DIR$" />
112
+ <envs />
113
+ <scope-kind value="TEST" />
114
+ <test-file value="$PROJECT_DIR$/test/en/negative_cases.test.ts" />
115
+ <test-names>
116
+ <test-name value="Test - Skip random non-date patterns" />
117
+ </test-names>
118
+ <method v="2" />
119
+ </configuration>
120
+ <configuration name="Test erroneous values" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
121
+ <node-interpreter value="project" />
122
+ <node-options value="" />
123
+ <jest-package value="$PROJECT_DIR$/node_modules/jest" />
124
+ <working-dir value="$PROJECT_DIR$" />
125
+ <envs />
126
+ <scope-kind value="TEST" />
127
+ <test-file value="$PROJECT_DIR$/test/system.test.ts" />
128
+ <test-names>
129
+ <test-name value="Test erroneous values" />
130
+ </test-names>
131
+ <method v="2" />
132
+ </configuration>
133
+ <configuration name="en_time_exp.test.ts" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
134
+ <node-interpreter value="project" />
135
+ <node-options value="" />
136
+ <jest-package value="$PROJECT_DIR$/node_modules/jest" />
137
+ <working-dir value="$PROJECT_DIR$" />
138
+ <envs />
139
+ <scope-kind value="TEST_FILE" />
140
+ <test-file value="$PROJECT_DIR$/test/en/en_time_exp.test.ts" />
141
+ <method v="2" />
142
+ </configuration>
143
+ <configuration name="negative_cases.test.ts" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
144
+ <node-interpreter value="project" />
145
+ <node-options value="" />
146
+ <jest-package value="$PROJECT_DIR$/node_modules/jest" />
147
+ <working-dir value="$PROJECT_DIR$" />
148
+ <envs />
149
+ <scope-kind value="TEST_FILE" />
150
+ <test-file value="$PROJECT_DIR$/test/en/negative_cases.test.ts" />
151
+ <method v="2" />
152
+ </configuration>
153
+ <configuration name="benchmark.js" type="NodeJSConfigurationType" nameIsGenerated="true" path-to-js-file="benchmark/benchmark.js" working-dir="$PROJECT_DIR$/">
154
+ <EXTENSION ID="com.jetbrains.nodejs.run.NodeJSProfilingRunConfigurationExtension">
155
+ <profiling do-profile="true" />
156
+ </EXTENSION>
157
+ <method v="2" />
158
+ </configuration>
159
+ <list>
160
+ <item itemvalue="Jest.All Tests" />
161
+ <item itemvalue="Node.js.benchmark.js" />
162
+ <item itemvalue="Jest.Test - Skip random non-date patterns" />
163
+ <item itemvalue="Jest.Test erroneous values" />
164
+ <item itemvalue="Jest.en_time_exp.test.ts" />
165
+ <item itemvalue="Jest.negative_cases.test.ts" />
166
+ <item itemvalue="Jest.Test - Skip impossible dates/times" />
167
+ </list>
168
+ <recent_temporary>
169
+ <list>
170
+ <item itemvalue="Jest.Test - Skip impossible dates/times" />
171
+ <item itemvalue="Jest.negative_cases.test.ts" />
172
+ <item itemvalue="Jest.en_time_exp.test.ts" />
173
+ <item itemvalue="Jest.Test erroneous values" />
174
+ <item itemvalue="Jest.Test - Skip random non-date patterns" />
175
+ </list>
176
+ </recent_temporary>
177
+ </component>
178
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="project-level" UseSingleDictionary="true" transferred="true" />
179
+ <component name="SvnConfiguration">
180
+ <configuration />
181
+ </component>
182
+ <component name="TaskManager">
183
+ <task active="true" id="Default" summary="Default task">
184
+ <changelist id="2e0b76bb-7462-4a34-aa1d-16a9ba3798d7" name="Default Changelist" comment="" />
185
+ <created>1584864001474</created>
186
+ <option name="number" value="Default" />
187
+ <option name="presentableId" value="Default" />
188
+ <updated>1584864001474</updated>
189
+ <workItem from="1584864004406" duration="10296000" />
190
+ <workItem from="1586590876923" duration="16521000" />
191
+ <workItem from="1586678890563" duration="340000" />
192
+ <workItem from="1587261444799" duration="13911000" />
193
+ <workItem from="1587805847324" duration="2000" />
194
+ <workItem from="1587900049567" duration="1213000" />
195
+ <workItem from="1588416203732" duration="1205000" />
196
+ <workItem from="1588670797903" duration="1734000" />
197
+ <workItem from="1588737079248" duration="6300000" />
198
+ <workItem from="1588743424264" duration="28139000" />
199
+ <workItem from="1588991231647" duration="748000" />
200
+ <workItem from="1589018893048" duration="2937000" />
201
+ <workItem from="1589021927567" duration="35000" />
202
+ <workItem from="1589080919089" duration="13979000" />
203
+ <workItem from="1589099045969" duration="228000" />
204
+ <workItem from="1589615343519" duration="12354000" />
205
+ <workItem from="1589629763000" duration="10191000" />
206
+ <workItem from="1590139236557" duration="8704000" />
207
+ <workItem from="1590199845386" duration="12571000" />
208
+ <workItem from="1590249289717" duration="3000" />
209
+ <workItem from="1590831896250" duration="5471000" />
210
+ <workItem from="1590837392179" duration="4990000" />
211
+ <workItem from="1590893460812" duration="7531000" />
212
+ <workItem from="1593944519226" duration="16650000" />
213
+ <workItem from="1594121850421" duration="416000" />
214
+ <workItem from="1594362015482" duration="28796000" />
215
+ <workItem from="1594543371109" duration="19000" />
216
+ <workItem from="1594544186706" duration="2225000" />
217
+ <workItem from="1595048867095" duration="16182000" />
218
+ <workItem from="1595490023617" duration="19193000" />
219
+ <workItem from="1595565198233" duration="474000" />
220
+ <workItem from="1596259117912" duration="22985000" />
221
+ <workItem from="1596869803400" duration="798000" />
222
+ <workItem from="1598085605288" duration="7117000" />
223
+ <workItem from="1598241616578" duration="7225000" />
224
+ <workItem from="1603610870568" duration="5404000" />
225
+ <workItem from="1604122792936" duration="548000" />
226
+ <workItem from="1606022143412" duration="1662000" />
227
+ <workItem from="1606032031148" duration="5902000" />
228
+ <workItem from="1606619917293" duration="5718000" />
229
+ <workItem from="1610170003553" duration="6607000" />
230
+ <workItem from="1612685442329" duration="2803000" />
231
+ <workItem from="1613371340458" duration="3766000" />
232
+ <workItem from="1614500734227" duration="2558000" />
233
+ <workItem from="1615085500400" duration="10094000" />
234
+ <workItem from="1615165022342" duration="387000" />
235
+ <workItem from="1615544273183" duration="12692000" />
236
+ <workItem from="1615627570866" duration="907000" />
237
+ <workItem from="1615629335332" duration="74000" />
238
+ <workItem from="1616301213092" duration="11004000" />
239
+ <workItem from="1616920954993" duration="574000" />
240
+ <workItem from="1617521501324" duration="7933000" />
241
+ <workItem from="1622344986754" duration="8255000" />
242
+ <workItem from="1622968839524" duration="13219000" />
243
+ <workItem from="1623576937164" duration="8147000" />
244
+ <workItem from="1625989077137" duration="5717000" />
245
+ <workItem from="1626543794449" duration="6000" />
246
+ <workItem from="1626593458665" duration="6616000" />
247
+ <workItem from="1626672980241" duration="6000" />
248
+ <workItem from="1630208464301" duration="544000" />
249
+ <workItem from="1631533875464" duration="281000" />
250
+ <workItem from="1632531735320" duration="3625000" />
251
+ <workItem from="1637229673963" duration="1266000" />
252
+ <workItem from="1637710870764" duration="6721000" />
253
+ <workItem from="1639892469511" duration="80000" />
254
+ <workItem from="1640348646059" duration="648000" />
255
+ <workItem from="1640658908184" duration="2721000" />
256
+ <workItem from="1643514102921" duration="3246000" />
257
+ <workItem from="1644112037723" duration="1885000" />
258
+ <workItem from="1644720908329" duration="2495000" />
259
+ <workItem from="1645347872353" duration="572000" />
260
+ <workItem from="1645412195905" duration="2639000" />
261
+ <workItem from="1645701427989" duration="4944000" />
262
+ <workItem from="1648857250464" duration="295000" />
263
+ <workItem from="1650076301870" duration="4251000" />
264
+ <workItem from="1650767240207" duration="1157000" />
265
+ <workItem from="1650859815963" duration="571000" />
266
+ <workItem from="1654400026155" duration="2746000" />
267
+ <workItem from="1656415028772" duration="601000" />
268
+ <workItem from="1657944532366" duration="20000" />
269
+ <workItem from="1659841125069" duration="1762000" />
270
+ <workItem from="1659862420701" duration="1519000" />
271
+ <workItem from="1660381175625" duration="10059000" />
272
+ <workItem from="1661009343306" duration="2431000" />
273
+ <workItem from="1661048879110" duration="10416000" />
274
+ <workItem from="1665279226374" duration="1041000" />
275
+ <workItem from="1665884284050" duration="2795000" />
276
+ <workItem from="1668829159659" duration="6265000" />
277
+ </task>
278
+ <servers />
279
+ </component>
280
+ <component name="TypeScriptGeneratedFilesManager">
281
+ <option name="version" value="3" />
282
+ </component>
283
+ <component name="XDebuggerManager">
284
+ <breakpoint-manager>
285
+ <breakpoints>
286
+ <line-breakpoint enabled="true" type="javascript">
287
+ <url>file://$PROJECT_DIR$/test/es/es_little_endian.test.js</url>
288
+ <line>221</line>
289
+ <option name="timeStamp" value="4" />
290
+ </line-breakpoint>
291
+ <line-breakpoint enabled="true" type="javascript">
292
+ <url>file://$PROJECT_DIR$/test/es/es_little_endian.test.js</url>
293
+ <line>228</line>
294
+ <option name="timeStamp" value="5" />
295
+ </line-breakpoint>
296
+ <line-breakpoint enabled="true" type="javascript">
297
+ <url>file://$PROJECT_DIR$/src/common/refiners/UnlikelyFormatFilter.ts</url>
298
+ <line>18</line>
299
+ <option name="timeStamp" value="6" />
300
+ </line-breakpoint>
301
+ <line-breakpoint enabled="true" type="javascript">
302
+ <url>file://$PROJECT_DIR$/test/en/en_relative.test.ts</url>
303
+ <line>6</line>
304
+ <option name="timeStamp" value="8" />
305
+ </line-breakpoint>
306
+ <line-breakpoint enabled="true" type="javascript">
307
+ <url>file://$PROJECT_DIR$/test/en/en_casual.test.ts</url>
308
+ <line>347</line>
309
+ <properties lambdaOrdinal="-1" />
310
+ <option name="timeStamp" value="9" />
311
+ </line-breakpoint>
312
+ </breakpoints>
313
+ </breakpoint-manager>
314
+ </component>
315
+ <component name="com.intellij.coverage.CoverageDataManagerImpl">
316
+ <SUITE FILE_PATH="coverage/chrono$en_time_exp_test_ts.info" NAME="en_time_exp.test.ts Coverage Results" MODIFIED="1595503470724" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="JestJavaScriptTestRunnerCoverage" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
317
+ <SUITE FILE_PATH="coverage/chrono$All_Tests.info" NAME="All Tests Coverage Results" MODIFIED="1665279297997" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="JestJavaScriptTestRunnerCoverage" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
318
+ <SUITE FILE_PATH="coverage/chrono$Test___Single_expression.info" NAME="Test - Single expression Coverage Results" MODIFIED="1595504124499" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="JestJavaScriptTestRunnerCoverage" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
319
+ </component>
320
+ </project>
package/README.md CHANGED
@@ -180,7 +180,7 @@ chrono.en.parseDate('6/10/2018');
180
180
  chrono.ja.parseDate('昭和64年1月7日');
181
181
  ```
182
182
 
183
- Current supported locale options are: `en`, `ja`
183
+ Current supported locale options are: `en`, `ja`, `fr`, `nl` and `ru` (`de`, `pt`, and `zh.hant` are partially supported).
184
184
 
185
185
  ## Customize Chrono
186
186
 
@@ -0,0 +1,111 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta http-equiv="X-UA-Compatible" />
7
+ <script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js"></script>
8
+ <style>
9
+ .wrapper {
10
+ display: flex;
11
+ flex: wrap;
12
+ order: row;
13
+ }
14
+ </style>
15
+ <title>Basic parsing benchmark</title>
16
+ </head>
17
+ <body>
18
+ <div style="max-width: 800px">
19
+ <canvas id="chart1626605789860" width="16" height="9"></canvas>
20
+ </div>
21
+ <script>
22
+ const format = (num) => {
23
+ const chunked = [];
24
+ String(num)
25
+ .split("")
26
+ .reverse()
27
+ .forEach((char, index) => {
28
+ if (index % 3 === 0) {
29
+ chunked.unshift([char]);
30
+ } else {
31
+ chunked[0].unshift(char);
32
+ }
33
+ });
34
+
35
+ return chunked.map((chunk) => chunk.join("")).join(" ");
36
+ };
37
+ const ctx1626605789860 = document
38
+ .getElementById("chart1626605789860")
39
+ .getContext("2d");
40
+ const chart1626605789860 = new Chart(ctx1626605789860, {
41
+ type: "bar",
42
+ data: {
43
+ labels: [
44
+ "Parsing empty string",
45
+ "Parsing slash date - 11/12/2021",
46
+ "Parsing a long repeated space",
47
+ ],
48
+ datasets: [
49
+ {
50
+ data: [284717, 63846, 11764],
51
+ backgroundColor: [
52
+ "rgba(63, 142, 252, 0.8)",
53
+ "rgba(116, 165, 127, 0.8)",
54
+ "rgba(158, 206, 154, 0.8)",
55
+ ],
56
+ borderColor: [
57
+ "rgba(63, 142, 252, 1)",
58
+ "rgba(116, 165, 127, 1)",
59
+ "rgba(158, 206, 154, 1)",
60
+ ],
61
+ borderWidth: 1,
62
+ },
63
+ ],
64
+ },
65
+ options: {
66
+ legend: {
67
+ display: false,
68
+ },
69
+ title: {
70
+ display: true,
71
+ text: "Basic parsing benchmark",
72
+ fontSize: 16,
73
+ padding: 20,
74
+ },
75
+ tooltips: {
76
+ callbacks: {
77
+ label: (tooltipItem) => {
78
+ return format(tooltipItem.yLabel) + " ops/s";
79
+ },
80
+ },
81
+ },
82
+ scales: {
83
+ yAxes: [
84
+ {
85
+ gridLines: {
86
+ color: "rgba(127, 127, 127, 0.2)",
87
+ },
88
+ scaleLabel: {
89
+ display: true,
90
+ labelString: "Operations per second",
91
+ },
92
+ ticks: {
93
+ beginAtZero: true,
94
+ callback: format,
95
+ },
96
+ },
97
+ ],
98
+ xAxes: [
99
+ {
100
+ gridLines: {
101
+ color: "rgba(127, 127, 127, 0.2)",
102
+ },
103
+ maxBarThickness: 150,
104
+ },
105
+ ],
106
+ },
107
+ },
108
+ });
109
+ </script>
110
+ </body>
111
+ </html>