@gobrand/tiempo 2.8.1 → 2.9.1

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 (445) hide show
  1. package/dist/addDays.js +3 -2
  2. package/dist/addHours.js +3 -2
  3. package/dist/addMicroseconds.js +3 -2
  4. package/dist/addMilliseconds.js +3 -2
  5. package/dist/addMinutes.js +3 -2
  6. package/dist/addMonths.js +3 -2
  7. package/dist/addNanoseconds.js +3 -2
  8. package/dist/addSeconds.js +3 -2
  9. package/dist/addWeeks.js +3 -2
  10. package/dist/addYears.js +3 -2
  11. package/dist/{chunk-TNCLJK4Y.js → chunk-26VAIV6A.js} +5 -3
  12. package/dist/chunk-26VAIV6A.js.map +1 -0
  13. package/dist/{chunk-JA7SVLAF.js → chunk-2KYXZIGP.js} +4 -4
  14. package/dist/{chunk-AE36GX4F.js → chunk-2PDEHGNB.js} +5 -2
  15. package/dist/chunk-2PDEHGNB.js.map +1 -0
  16. package/dist/{chunk-VLZ3HQQA.js → chunk-2Q6WEULJ.js} +2 -2
  17. package/dist/{chunk-ZGR4NZTS.js → chunk-347TWPBS.js} +2 -3
  18. package/dist/chunk-347TWPBS.js.map +1 -0
  19. package/dist/{chunk-JOD4ATPE.js → chunk-3HXEOAQN.js} +2 -2
  20. package/dist/{chunk-WVHAYLBW.js → chunk-3ORGILYG.js} +2 -2
  21. package/dist/{chunk-7ATM7AXL.js → chunk-3RSGMPWR.js} +2 -2
  22. package/dist/{chunk-AHMKY474.js → chunk-3XNQYFWS.js} +2 -2
  23. package/dist/{chunk-5C3TQSWA.js → chunk-4BQ4BJ4Y.js} +4 -5
  24. package/dist/chunk-4BQ4BJ4Y.js.map +1 -0
  25. package/dist/{chunk-4E7OGJ3F.js → chunk-4EFKJDHV.js} +5 -2
  26. package/dist/chunk-4EFKJDHV.js.map +1 -0
  27. package/dist/{chunk-U4RNUZXO.js → chunk-4JPDLKBK.js} +2 -2
  28. package/dist/{chunk-Y7CIJQ67.js → chunk-4JPVE6OV.js} +5 -3
  29. package/dist/chunk-4JPVE6OV.js.map +1 -0
  30. package/dist/{chunk-OLEOU3XE.js → chunk-4N6CTX4N.js} +5 -3
  31. package/dist/chunk-4N6CTX4N.js.map +1 -0
  32. package/dist/{chunk-XW5MLXX5.js → chunk-4RLD3OE2.js} +2 -2
  33. package/dist/{chunk-YQBM63DC.js → chunk-5DQVEAAR.js} +9 -4
  34. package/dist/chunk-5DQVEAAR.js.map +1 -0
  35. package/dist/{chunk-YKBP3G7L.js → chunk-5ZOOVGMT.js} +2 -2
  36. package/dist/{chunk-UBY22QWM.js → chunk-63RSJ2W4.js} +4 -4
  37. package/dist/chunk-65RGM7EG.js +13 -0
  38. package/dist/chunk-65RGM7EG.js.map +1 -0
  39. package/dist/{chunk-EEQ3REET.js → chunk-6KAIABBV.js} +2 -2
  40. package/dist/{chunk-PPB62JYV.js → chunk-6SF6EC2I.js} +2 -2
  41. package/dist/{chunk-5BYRBC7H.js → chunk-7EVZGEAI.js} +18 -17
  42. package/dist/{chunk-5BYRBC7H.js.map → chunk-7EVZGEAI.js.map} +1 -1
  43. package/dist/{chunk-4NJMCCUM.js → chunk-7JL3U64G.js} +2 -2
  44. package/dist/{chunk-JNA3AFOC.js → chunk-AHBTUFRW.js} +5 -2
  45. package/dist/chunk-AHBTUFRW.js.map +1 -0
  46. package/dist/chunk-AI5MRREC.js +22 -0
  47. package/dist/chunk-AI5MRREC.js.map +1 -0
  48. package/dist/{chunk-RW3C2677.js → chunk-ALAAO5GL.js} +2 -3
  49. package/dist/chunk-ALAAO5GL.js.map +1 -0
  50. package/dist/{chunk-A5VVBYNT.js → chunk-ATEVQYB6.js} +2 -2
  51. package/dist/{chunk-OQ4CWKJT.js → chunk-BO5WXWO2.js} +2 -3
  52. package/dist/chunk-BO5WXWO2.js.map +1 -0
  53. package/dist/{chunk-4PSMM55Q.js → chunk-BQHSXMGZ.js} +7 -3
  54. package/dist/chunk-BQHSXMGZ.js.map +1 -0
  55. package/dist/{chunk-776JOVV6.js → chunk-C4UZJHM7.js} +2 -3
  56. package/dist/chunk-C4UZJHM7.js.map +1 -0
  57. package/dist/{chunk-VZJGCDAG.js → chunk-C5O6LIWR.js} +5 -2
  58. package/dist/chunk-C5O6LIWR.js.map +1 -0
  59. package/dist/{chunk-LDO6PRNJ.js → chunk-C7SIOWMA.js} +2 -2
  60. package/dist/{chunk-FSD3DDFC.js → chunk-CKOIGPND.js} +5 -2
  61. package/dist/chunk-CKOIGPND.js.map +1 -0
  62. package/dist/{chunk-6IP245MS.js → chunk-DC5JXNIC.js} +5 -5
  63. package/dist/chunk-DC5JXNIC.js.map +1 -0
  64. package/dist/{chunk-HOCNCQTC.js → chunk-E2MU2P66.js} +2 -3
  65. package/dist/chunk-E2MU2P66.js.map +1 -0
  66. package/dist/{chunk-ADQTZVMH.js → chunk-EKR6BYFM.js} +2 -2
  67. package/dist/{chunk-PVAOUYXF.js → chunk-EOXULNBC.js} +5 -5
  68. package/dist/chunk-EOXULNBC.js.map +1 -0
  69. package/dist/{chunk-BV6CLVSI.js → chunk-EW3MVOID.js} +3 -4
  70. package/dist/chunk-EW3MVOID.js.map +1 -0
  71. package/dist/{chunk-WUAIUEH7.js → chunk-EZJDWFFE.js} +5 -2
  72. package/dist/chunk-EZJDWFFE.js.map +1 -0
  73. package/dist/{chunk-BQBLSXK2.js → chunk-FLRHLAMD.js} +2 -2
  74. package/dist/{chunk-TGKWBQ7L.js → chunk-GSVAMMHA.js} +6 -3
  75. package/dist/chunk-GSVAMMHA.js.map +1 -0
  76. package/dist/{chunk-3TSFIPUR.js → chunk-HDTIOOWB.js} +2 -3
  77. package/dist/chunk-HDTIOOWB.js.map +1 -0
  78. package/dist/{chunk-EZ7NVTZI.js → chunk-I6S6EIZG.js} +7 -5
  79. package/dist/chunk-I6S6EIZG.js.map +1 -0
  80. package/dist/{chunk-NRD5HRZV.js → chunk-IOLV6PTH.js} +2 -2
  81. package/dist/{chunk-ZC6KWXCW.js → chunk-IV47GMAA.js} +36 -27
  82. package/dist/chunk-IV47GMAA.js.map +1 -0
  83. package/dist/{chunk-HFQUXON5.js → chunk-J52B4PX6.js} +10 -5
  84. package/dist/chunk-J52B4PX6.js.map +1 -0
  85. package/dist/{chunk-WY63VEXE.js → chunk-JM42PLWS.js} +5 -2
  86. package/dist/chunk-JM42PLWS.js.map +1 -0
  87. package/dist/{chunk-DKYVFYWM.js → chunk-JTANYFEV.js} +5 -3
  88. package/dist/chunk-JTANYFEV.js.map +1 -0
  89. package/dist/{chunk-G2JUEBC5.js → chunk-LOANS6ZE.js} +5 -3
  90. package/dist/chunk-LOANS6ZE.js.map +1 -0
  91. package/dist/{chunk-MMI2HHT7.js → chunk-LTW2TDLL.js} +2 -2
  92. package/dist/{chunk-JHRXY36W.js → chunk-MA7PR6V5.js} +2 -2
  93. package/dist/{chunk-L4SVABDH.js → chunk-MEADD45E.js} +2 -2
  94. package/dist/{chunk-2XHAHSB6.js → chunk-MXE44KVG.js} +2 -2
  95. package/dist/{chunk-DT2EWLHU.js → chunk-NE7HNEF6.js} +2 -2
  96. package/dist/{chunk-EYO2ZJLH.js → chunk-OPWK2TVF.js} +2 -2
  97. package/dist/{chunk-BIAPE4MR.js → chunk-OVFO6CZ7.js} +5 -5
  98. package/dist/chunk-OVFO6CZ7.js.map +1 -0
  99. package/dist/{chunk-HDBH7RTY.js → chunk-OX4I35UO.js} +2 -2
  100. package/dist/{chunk-3A6X6WV5.js → chunk-PXF3RMFH.js} +1 -2
  101. package/dist/chunk-PXF3RMFH.js.map +1 -0
  102. package/dist/{chunk-CY746ZUQ.js → chunk-RB2YCLBV.js} +2 -2
  103. package/dist/{chunk-UJWM2BV2.js → chunk-RLF3Y7VC.js} +10 -5
  104. package/dist/chunk-RLF3Y7VC.js.map +1 -0
  105. package/dist/{chunk-RBEW6PXR.js → chunk-RPQ5K247.js} +5 -2
  106. package/dist/chunk-RPQ5K247.js.map +1 -0
  107. package/dist/{chunk-HLGMUTFK.js → chunk-RQUVNJBG.js} +2 -3
  108. package/dist/chunk-RQUVNJBG.js.map +1 -0
  109. package/dist/{chunk-UJW2FPI4.js → chunk-RTNF2H34.js} +2 -2
  110. package/dist/{chunk-BPZ7BRJW.js → chunk-RW25XXOH.js} +5 -2
  111. package/dist/chunk-RW25XXOH.js.map +1 -0
  112. package/dist/{chunk-QFNGYTTH.js → chunk-RXTMPPOP.js} +5 -3
  113. package/dist/chunk-RXTMPPOP.js.map +1 -0
  114. package/dist/{chunk-S63QUP4W.js → chunk-SAFMGBXL.js} +2 -2
  115. package/dist/chunk-SGHPW77A.js +19 -0
  116. package/dist/chunk-SGHPW77A.js.map +1 -0
  117. package/dist/{chunk-AJEIDKVJ.js → chunk-T4J7PXYZ.js} +5 -2
  118. package/dist/chunk-T4J7PXYZ.js.map +1 -0
  119. package/dist/{chunk-KZB6NERH.js → chunk-TCEDHHNM.js} +5 -2
  120. package/dist/chunk-TCEDHHNM.js.map +1 -0
  121. package/dist/{chunk-J6G2I2TU.js → chunk-TKV5JYQY.js} +2 -2
  122. package/dist/chunk-TUOGC2TY.js +19 -0
  123. package/dist/chunk-TUOGC2TY.js.map +1 -0
  124. package/dist/chunk-TWZNSMKO.js +19 -0
  125. package/dist/chunk-TWZNSMKO.js.map +1 -0
  126. package/dist/{chunk-YIT6EMBC.js → chunk-TYYV5UYX.js} +2 -3
  127. package/dist/chunk-TYYV5UYX.js.map +1 -0
  128. package/dist/{chunk-7VLSSOVC.js → chunk-UAYBKORB.js} +3 -4
  129. package/dist/chunk-UAYBKORB.js.map +1 -0
  130. package/dist/{chunk-OABS374T.js → chunk-VBDGWVJ4.js} +2 -3
  131. package/dist/chunk-VBDGWVJ4.js.map +1 -0
  132. package/dist/{chunk-BUX26GTD.js → chunk-VDEZJB42.js} +5 -3
  133. package/dist/chunk-VDEZJB42.js.map +1 -0
  134. package/dist/{chunk-O6RIN7K3.js → chunk-VJGNLAF2.js} +5 -2
  135. package/dist/chunk-VJGNLAF2.js.map +1 -0
  136. package/dist/{chunk-ZDA7GSWU.js → chunk-VTP4QJY6.js} +3 -4
  137. package/dist/chunk-VTP4QJY6.js.map +1 -0
  138. package/dist/{chunk-DFLGGK4F.js → chunk-VTXBG2JV.js} +6 -3
  139. package/dist/chunk-VTXBG2JV.js.map +1 -0
  140. package/dist/{chunk-BH2YB4MV.js → chunk-VXG2IG2N.js} +2 -2
  141. package/dist/{chunk-AJ4JBKJK.js → chunk-VXOQ7IG5.js} +1 -2
  142. package/dist/chunk-VXOQ7IG5.js.map +1 -0
  143. package/dist/{chunk-V27NUBXQ.js → chunk-WWLDINLH.js} +2 -2
  144. package/dist/{chunk-CHW2EN2O.js → chunk-X3T7QMBA.js} +5 -5
  145. package/dist/chunk-X3T7QMBA.js.map +1 -0
  146. package/dist/chunk-XVAVCEKT.js +19 -0
  147. package/dist/chunk-XVAVCEKT.js.map +1 -0
  148. package/dist/{chunk-Q2F3HEXB.js → chunk-YMS7JXBN.js} +2 -2
  149. package/dist/{chunk-52NEOY34.js → chunk-YNV6WGXV.js} +2 -2
  150. package/dist/{chunk-BSV32PSO.js → chunk-YO2VXHA5.js} +6 -3
  151. package/dist/chunk-YO2VXHA5.js.map +1 -0
  152. package/dist/{chunk-ISHZRFVN.js → chunk-ZITFEEZS.js} +2 -2
  153. package/dist/{chunk-X26WIJ6L.js → chunk-ZSOH7VST.js} +7 -5
  154. package/dist/chunk-ZSOH7VST.js.map +1 -0
  155. package/dist/differenceInDays.d.ts +5 -3
  156. package/dist/differenceInDays.d.ts.map +1 -1
  157. package/dist/differenceInDays.js +3 -2
  158. package/dist/differenceInHours.d.ts +5 -3
  159. package/dist/differenceInHours.d.ts.map +1 -1
  160. package/dist/differenceInHours.js +4 -3
  161. package/dist/differenceInMicroseconds.d.ts +1 -1
  162. package/dist/differenceInMicroseconds.d.ts.map +1 -1
  163. package/dist/differenceInMicroseconds.js +3 -2
  164. package/dist/differenceInMilliseconds.d.ts +1 -1
  165. package/dist/differenceInMilliseconds.d.ts.map +1 -1
  166. package/dist/differenceInMilliseconds.js +4 -3
  167. package/dist/differenceInMinutes.d.ts +5 -3
  168. package/dist/differenceInMinutes.d.ts.map +1 -1
  169. package/dist/differenceInMinutes.js +4 -3
  170. package/dist/differenceInMonths.d.ts +8 -5
  171. package/dist/differenceInMonths.d.ts.map +1 -1
  172. package/dist/differenceInMonths.js +3 -2
  173. package/dist/differenceInNanoseconds.d.ts +1 -1
  174. package/dist/differenceInNanoseconds.d.ts.map +1 -1
  175. package/dist/differenceInNanoseconds.js +3 -2
  176. package/dist/differenceInSeconds.d.ts +5 -3
  177. package/dist/differenceInSeconds.d.ts.map +1 -1
  178. package/dist/differenceInSeconds.js +4 -3
  179. package/dist/differenceInWeeks.d.ts +6 -4
  180. package/dist/differenceInWeeks.d.ts.map +1 -1
  181. package/dist/differenceInWeeks.js +3 -2
  182. package/dist/differenceInYears.d.ts +8 -5
  183. package/dist/differenceInYears.d.ts.map +1 -1
  184. package/dist/differenceInYears.js +3 -2
  185. package/dist/eachDayOfInterval.d.ts +1 -1
  186. package/dist/eachDayOfInterval.d.ts.map +1 -1
  187. package/dist/eachDayOfInterval.js +3 -2
  188. package/dist/eachHourOfInterval.d.ts +1 -1
  189. package/dist/eachHourOfInterval.d.ts.map +1 -1
  190. package/dist/eachHourOfInterval.js +3 -2
  191. package/dist/eachMinuteOfInterval.d.ts +1 -1
  192. package/dist/eachMinuteOfInterval.d.ts.map +1 -1
  193. package/dist/eachMinuteOfInterval.js +3 -2
  194. package/dist/eachMonthOfInterval.d.ts +1 -1
  195. package/dist/eachMonthOfInterval.d.ts.map +1 -1
  196. package/dist/eachMonthOfInterval.js +3 -2
  197. package/dist/eachWeekOfInterval.d.ts +1 -1
  198. package/dist/eachWeekOfInterval.d.ts.map +1 -1
  199. package/dist/eachWeekOfInterval.js +3 -2
  200. package/dist/eachYearOfInterval.d.ts +1 -1
  201. package/dist/eachYearOfInterval.d.ts.map +1 -1
  202. package/dist/eachYearOfInterval.js +3 -2
  203. package/dist/endOfDay.d.ts +1 -1
  204. package/dist/endOfDay.d.ts.map +1 -1
  205. package/dist/endOfDay.js +5 -4
  206. package/dist/endOfMonth.d.ts +1 -1
  207. package/dist/endOfMonth.d.ts.map +1 -1
  208. package/dist/endOfMonth.js +5 -4
  209. package/dist/endOfWeek.d.ts +1 -1
  210. package/dist/endOfWeek.d.ts.map +1 -1
  211. package/dist/endOfWeek.js +4 -3
  212. package/dist/endOfYear.d.ts +1 -1
  213. package/dist/endOfYear.d.ts.map +1 -1
  214. package/dist/endOfYear.js +5 -4
  215. package/dist/format.d.ts +1 -1
  216. package/dist/format.d.ts.map +1 -1
  217. package/dist/format.js +3 -2
  218. package/dist/formatPlainDate.d.ts +1 -1
  219. package/dist/formatPlainDate.d.ts.map +1 -1
  220. package/dist/formatPlainDate.js +2 -1
  221. package/dist/index.d.ts +1 -0
  222. package/dist/index.d.ts.map +1 -1
  223. package/dist/index.js +89 -88
  224. package/dist/intlFormatDistance.d.ts.map +1 -1
  225. package/dist/intlFormatDistance.js +11 -10
  226. package/dist/isAfter.d.ts +1 -1
  227. package/dist/isAfter.d.ts.map +1 -1
  228. package/dist/isAfter.js +4 -3
  229. package/dist/isBefore.d.ts +1 -1
  230. package/dist/isBefore.d.ts.map +1 -1
  231. package/dist/isBefore.js +4 -3
  232. package/dist/isFuture.js +5 -4
  233. package/dist/isPast.js +5 -4
  234. package/dist/isPlainDateAfter.d.ts +1 -1
  235. package/dist/isPlainDateAfter.d.ts.map +1 -1
  236. package/dist/isPlainDateAfter.js +2 -1
  237. package/dist/isPlainDateBefore.d.ts +1 -1
  238. package/dist/isPlainDateBefore.d.ts.map +1 -1
  239. package/dist/isPlainDateBefore.js +2 -1
  240. package/dist/isPlainDateEqual.d.ts +1 -1
  241. package/dist/isPlainDateEqual.d.ts.map +1 -1
  242. package/dist/isPlainDateEqual.js +2 -1
  243. package/dist/isPlainTimeAfter.d.ts +1 -1
  244. package/dist/isPlainTimeAfter.d.ts.map +1 -1
  245. package/dist/isPlainTimeAfter.js +2 -1
  246. package/dist/isPlainTimeBefore.d.ts +1 -1
  247. package/dist/isPlainTimeBefore.d.ts.map +1 -1
  248. package/dist/isPlainTimeBefore.js +2 -1
  249. package/dist/isPlainTimeEqual.d.ts +1 -1
  250. package/dist/isPlainTimeEqual.d.ts.map +1 -1
  251. package/dist/isPlainTimeEqual.js +2 -1
  252. package/dist/isSameDay.d.ts +1 -1
  253. package/dist/isSameDay.d.ts.map +1 -1
  254. package/dist/isSameDay.js +3 -2
  255. package/dist/isSameHour.js +3 -2
  256. package/dist/isSameMicrosecond.js +3 -2
  257. package/dist/isSameMillisecond.js +3 -2
  258. package/dist/isSameMinute.js +3 -2
  259. package/dist/isSameMonth.js +3 -2
  260. package/dist/isSameNanosecond.js +3 -2
  261. package/dist/isSameSecond.js +3 -2
  262. package/dist/isSameWeek.js +3 -2
  263. package/dist/isSameYear.js +3 -2
  264. package/dist/isWithinInterval.d.ts +1 -1
  265. package/dist/isWithinInterval.d.ts.map +1 -1
  266. package/dist/isWithinInterval.js +5 -4
  267. package/dist/now.d.ts +1 -1
  268. package/dist/now.d.ts.map +1 -1
  269. package/dist/now.js +2 -1
  270. package/dist/roundToNearestHour.js +3 -2
  271. package/dist/roundToNearestMinute.js +3 -2
  272. package/dist/roundToNearestSecond.js +3 -2
  273. package/dist/shared/differenceInMilliseconds.d.ts +1 -1
  274. package/dist/shared/differenceInMilliseconds.d.ts.map +1 -1
  275. package/dist/shared/differenceInMilliseconds.js +2 -1
  276. package/dist/shared/differenceOptions.d.ts +16 -0
  277. package/dist/shared/differenceOptions.d.ts.map +1 -0
  278. package/dist/shared/differenceOptions.js +1 -0
  279. package/dist/shared/differenceOptions.js.map +1 -0
  280. package/dist/shared/isAfter.d.ts +1 -1
  281. package/dist/shared/isAfter.d.ts.map +1 -1
  282. package/dist/shared/isAfter.js +2 -1
  283. package/dist/shared/isBefore.d.ts +1 -1
  284. package/dist/shared/isBefore.d.ts.map +1 -1
  285. package/dist/shared/isBefore.js +2 -1
  286. package/dist/shared/normalizeTemporalInput.d.ts +1 -1
  287. package/dist/shared/normalizeTemporalInput.d.ts.map +1 -1
  288. package/dist/shared/normalizeTemporalInput.js +2 -1
  289. package/dist/shared/normalizeWithPlainDate.d.ts +1 -1
  290. package/dist/shared/normalizeWithPlainDate.d.ts.map +1 -1
  291. package/dist/shared/normalizeWithPlainDate.js +4 -3
  292. package/dist/shared/nowZoned.d.ts +1 -1
  293. package/dist/shared/nowZoned.d.ts.map +1 -1
  294. package/dist/shared/nowZoned.js +3 -2
  295. package/dist/shared/plainDateToZonedDateTime.d.ts +1 -1
  296. package/dist/shared/plainDateToZonedDateTime.d.ts.map +1 -1
  297. package/dist/shared/plainDateToZonedDateTime.js +2 -1
  298. package/dist/shared/temporal.d.ts +21 -0
  299. package/dist/shared/temporal.d.ts.map +1 -0
  300. package/dist/shared/temporal.js +13 -0
  301. package/dist/shared/temporal.js.map +1 -0
  302. package/dist/shared/temporal.test.d.ts +2 -0
  303. package/dist/shared/temporal.test.d.ts.map +1 -0
  304. package/dist/simpleFormat.d.ts +1 -1
  305. package/dist/simpleFormat.d.ts.map +1 -1
  306. package/dist/simpleFormat.js +2 -1
  307. package/dist/startOfDay.d.ts +1 -1
  308. package/dist/startOfDay.d.ts.map +1 -1
  309. package/dist/startOfDay.js +5 -4
  310. package/dist/startOfMonth.d.ts +1 -1
  311. package/dist/startOfMonth.d.ts.map +1 -1
  312. package/dist/startOfMonth.js +5 -4
  313. package/dist/startOfWeek.d.ts +1 -1
  314. package/dist/startOfWeek.d.ts.map +1 -1
  315. package/dist/startOfWeek.js +4 -3
  316. package/dist/startOfYear.d.ts +1 -1
  317. package/dist/startOfYear.d.ts.map +1 -1
  318. package/dist/startOfYear.js +5 -4
  319. package/dist/subDays.js +4 -3
  320. package/dist/subHours.js +4 -3
  321. package/dist/subMicroseconds.js +4 -3
  322. package/dist/subMilliseconds.js +4 -3
  323. package/dist/subMinutes.js +4 -3
  324. package/dist/subMonths.js +4 -3
  325. package/dist/subNanoseconds.js +4 -3
  326. package/dist/subSeconds.js +4 -3
  327. package/dist/subWeeks.js +4 -3
  328. package/dist/subYears.js +4 -3
  329. package/dist/toDate.d.ts +1 -1
  330. package/dist/toDate.d.ts.map +1 -1
  331. package/dist/toDate.js +2 -1
  332. package/dist/toIso.d.ts +1 -1
  333. package/dist/toIso.d.ts.map +1 -1
  334. package/dist/toIso.js +2 -1
  335. package/dist/toIso9075.d.ts +1 -1
  336. package/dist/toIso9075.d.ts.map +1 -1
  337. package/dist/toIso9075.js +2 -1
  338. package/dist/toPlainDate.d.ts +1 -1
  339. package/dist/toPlainDate.d.ts.map +1 -1
  340. package/dist/toPlainDate.js +2 -1
  341. package/dist/toPlainTime.d.ts +1 -1
  342. package/dist/toPlainTime.d.ts.map +1 -1
  343. package/dist/toPlainTime.js +2 -1
  344. package/dist/toUtc.d.ts +1 -1
  345. package/dist/toUtc.d.ts.map +1 -1
  346. package/dist/toUtc.js +2 -1
  347. package/dist/toZonedTime.d.ts +1 -1
  348. package/dist/toZonedTime.d.ts.map +1 -1
  349. package/dist/toZonedTime.js +2 -1
  350. package/dist/today.d.ts +1 -1
  351. package/dist/today.d.ts.map +1 -1
  352. package/dist/today.js +2 -1
  353. package/package.json +1 -1
  354. package/dist/chunk-3A6X6WV5.js.map +0 -1
  355. package/dist/chunk-3TSFIPUR.js.map +0 -1
  356. package/dist/chunk-4E7OGJ3F.js.map +0 -1
  357. package/dist/chunk-4PSMM55Q.js.map +0 -1
  358. package/dist/chunk-5C3TQSWA.js.map +0 -1
  359. package/dist/chunk-6IP245MS.js.map +0 -1
  360. package/dist/chunk-776JOVV6.js.map +0 -1
  361. package/dist/chunk-7VLSSOVC.js.map +0 -1
  362. package/dist/chunk-AE36GX4F.js.map +0 -1
  363. package/dist/chunk-AJ4JBKJK.js.map +0 -1
  364. package/dist/chunk-AJEIDKVJ.js.map +0 -1
  365. package/dist/chunk-B2R2G5YK.js +0 -19
  366. package/dist/chunk-B2R2G5YK.js.map +0 -1
  367. package/dist/chunk-BIAPE4MR.js.map +0 -1
  368. package/dist/chunk-BPZ7BRJW.js.map +0 -1
  369. package/dist/chunk-BSV32PSO.js.map +0 -1
  370. package/dist/chunk-BUX26GTD.js.map +0 -1
  371. package/dist/chunk-BV6CLVSI.js.map +0 -1
  372. package/dist/chunk-CHW2EN2O.js.map +0 -1
  373. package/dist/chunk-DFLGGK4F.js.map +0 -1
  374. package/dist/chunk-DKYVFYWM.js.map +0 -1
  375. package/dist/chunk-EZ7NVTZI.js.map +0 -1
  376. package/dist/chunk-FSD3DDFC.js.map +0 -1
  377. package/dist/chunk-G2JUEBC5.js.map +0 -1
  378. package/dist/chunk-HFQUXON5.js.map +0 -1
  379. package/dist/chunk-HLGMUTFK.js.map +0 -1
  380. package/dist/chunk-HOCNCQTC.js.map +0 -1
  381. package/dist/chunk-JNA3AFOC.js.map +0 -1
  382. package/dist/chunk-KGVUENQO.js +0 -17
  383. package/dist/chunk-KGVUENQO.js.map +0 -1
  384. package/dist/chunk-KZB6NERH.js.map +0 -1
  385. package/dist/chunk-MJSZNWCV.js +0 -10
  386. package/dist/chunk-MJSZNWCV.js.map +0 -1
  387. package/dist/chunk-O6RIN7K3.js.map +0 -1
  388. package/dist/chunk-OABS374T.js.map +0 -1
  389. package/dist/chunk-OLEOU3XE.js.map +0 -1
  390. package/dist/chunk-OQ4CWKJT.js.map +0 -1
  391. package/dist/chunk-PMJD5N5J.js +0 -19
  392. package/dist/chunk-PMJD5N5J.js.map +0 -1
  393. package/dist/chunk-PVAOUYXF.js.map +0 -1
  394. package/dist/chunk-QFNGYTTH.js.map +0 -1
  395. package/dist/chunk-QVOEXF46.js +0 -19
  396. package/dist/chunk-QVOEXF46.js.map +0 -1
  397. package/dist/chunk-RBEW6PXR.js.map +0 -1
  398. package/dist/chunk-RW3C2677.js.map +0 -1
  399. package/dist/chunk-TGKWBQ7L.js.map +0 -1
  400. package/dist/chunk-TNCLJK4Y.js.map +0 -1
  401. package/dist/chunk-UJWM2BV2.js.map +0 -1
  402. package/dist/chunk-VZJGCDAG.js.map +0 -1
  403. package/dist/chunk-WUAIUEH7.js.map +0 -1
  404. package/dist/chunk-WY63VEXE.js.map +0 -1
  405. package/dist/chunk-X26WIJ6L.js.map +0 -1
  406. package/dist/chunk-Y7CIJQ67.js.map +0 -1
  407. package/dist/chunk-YIT6EMBC.js.map +0 -1
  408. package/dist/chunk-YQBM63DC.js.map +0 -1
  409. package/dist/chunk-ZC6KWXCW.js.map +0 -1
  410. package/dist/chunk-ZDA7GSWU.js.map +0 -1
  411. package/dist/chunk-ZGR4NZTS.js.map +0 -1
  412. /package/dist/{chunk-JA7SVLAF.js.map → chunk-2KYXZIGP.js.map} +0 -0
  413. /package/dist/{chunk-VLZ3HQQA.js.map → chunk-2Q6WEULJ.js.map} +0 -0
  414. /package/dist/{chunk-JOD4ATPE.js.map → chunk-3HXEOAQN.js.map} +0 -0
  415. /package/dist/{chunk-WVHAYLBW.js.map → chunk-3ORGILYG.js.map} +0 -0
  416. /package/dist/{chunk-7ATM7AXL.js.map → chunk-3RSGMPWR.js.map} +0 -0
  417. /package/dist/{chunk-AHMKY474.js.map → chunk-3XNQYFWS.js.map} +0 -0
  418. /package/dist/{chunk-U4RNUZXO.js.map → chunk-4JPDLKBK.js.map} +0 -0
  419. /package/dist/{chunk-XW5MLXX5.js.map → chunk-4RLD3OE2.js.map} +0 -0
  420. /package/dist/{chunk-YKBP3G7L.js.map → chunk-5ZOOVGMT.js.map} +0 -0
  421. /package/dist/{chunk-UBY22QWM.js.map → chunk-63RSJ2W4.js.map} +0 -0
  422. /package/dist/{chunk-EEQ3REET.js.map → chunk-6KAIABBV.js.map} +0 -0
  423. /package/dist/{chunk-PPB62JYV.js.map → chunk-6SF6EC2I.js.map} +0 -0
  424. /package/dist/{chunk-4NJMCCUM.js.map → chunk-7JL3U64G.js.map} +0 -0
  425. /package/dist/{chunk-A5VVBYNT.js.map → chunk-ATEVQYB6.js.map} +0 -0
  426. /package/dist/{chunk-LDO6PRNJ.js.map → chunk-C7SIOWMA.js.map} +0 -0
  427. /package/dist/{chunk-ADQTZVMH.js.map → chunk-EKR6BYFM.js.map} +0 -0
  428. /package/dist/{chunk-BQBLSXK2.js.map → chunk-FLRHLAMD.js.map} +0 -0
  429. /package/dist/{chunk-NRD5HRZV.js.map → chunk-IOLV6PTH.js.map} +0 -0
  430. /package/dist/{chunk-MMI2HHT7.js.map → chunk-LTW2TDLL.js.map} +0 -0
  431. /package/dist/{chunk-JHRXY36W.js.map → chunk-MA7PR6V5.js.map} +0 -0
  432. /package/dist/{chunk-L4SVABDH.js.map → chunk-MEADD45E.js.map} +0 -0
  433. /package/dist/{chunk-2XHAHSB6.js.map → chunk-MXE44KVG.js.map} +0 -0
  434. /package/dist/{chunk-DT2EWLHU.js.map → chunk-NE7HNEF6.js.map} +0 -0
  435. /package/dist/{chunk-EYO2ZJLH.js.map → chunk-OPWK2TVF.js.map} +0 -0
  436. /package/dist/{chunk-HDBH7RTY.js.map → chunk-OX4I35UO.js.map} +0 -0
  437. /package/dist/{chunk-CY746ZUQ.js.map → chunk-RB2YCLBV.js.map} +0 -0
  438. /package/dist/{chunk-UJW2FPI4.js.map → chunk-RTNF2H34.js.map} +0 -0
  439. /package/dist/{chunk-S63QUP4W.js.map → chunk-SAFMGBXL.js.map} +0 -0
  440. /package/dist/{chunk-J6G2I2TU.js.map → chunk-TKV5JYQY.js.map} +0 -0
  441. /package/dist/{chunk-BH2YB4MV.js.map → chunk-VXG2IG2N.js.map} +0 -0
  442. /package/dist/{chunk-V27NUBXQ.js.map → chunk-WWLDINLH.js.map} +0 -0
  443. /package/dist/{chunk-Q2F3HEXB.js.map → chunk-YMS7JXBN.js.map} +0 -0
  444. /package/dist/{chunk-52NEOY34.js.map → chunk-YNV6WGXV.js.map} +0 -0
  445. /package/dist/{chunk-ISHZRFVN.js.map → chunk-ZITFEEZS.js.map} +0 -0
@@ -1,9 +1,8 @@
1
1
  import {
2
2
  normalizeWithPlainDate
3
- } from "./chunk-KGVUENQO.js";
3
+ } from "./chunk-TWZNSMKO.js";
4
4
 
5
5
  // src/startOfMonth.ts
6
- import "@js-temporal/polyfill";
7
6
  function startOfMonth(input, timezone) {
8
7
  const zonedDateTime = normalizeWithPlainDate(input, timezone);
9
8
  const firstDay = zonedDateTime.with({ day: 1 });
@@ -13,4 +12,4 @@ function startOfMonth(input, timezone) {
13
12
  export {
14
13
  startOfMonth
15
14
  };
16
- //# sourceMappingURL=chunk-HLGMUTFK.js.map
15
+ //# sourceMappingURL=chunk-RQUVNJBG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/startOfMonth.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport type { Timezone } from './types';\nimport { normalizeWithPlainDate } from './shared/normalizeWithPlainDate';\n\n/**\n * Returns a ZonedDateTime representing the first moment of the month (day 1 at midnight).\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @returns ZonedDateTime at the 1st day of the month at 00:00:00.000000000\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-01-15T12:00:00Z');\n * const start = startOfMonth(instant);\n * // 2025-01-01T00:00:00Z[UTC]\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (uses its timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-01-15T15:30:00-05:00[America/New_York]');\n * const start = startOfMonth(zoned);\n * // 2025-01-01T00:00:00-05:00[America/New_York]\n * ```\n *\n * @example\n * ```ts\n * // From PlainDate (requires timezone)\n * const date = Temporal.PlainDate.from('2025-01-15');\n * const start = startOfMonth(date, 'America/New_York');\n * // 2025-01-01T00:00:00-05:00[America/New_York]\n * ```\n */\nexport function startOfMonth(\n input: Temporal.Instant | Temporal.ZonedDateTime\n): Temporal.ZonedDateTime;\nexport function startOfMonth(\n input: Temporal.PlainDate,\n timezone: Timezone\n): Temporal.ZonedDateTime;\nexport function startOfMonth(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeWithPlainDate(input, timezone!);\n const firstDay = zonedDateTime.with({ day: 1 });\n return firstDay.startOfDay();\n}\n"],"mappings":";;;;;AAyCO,SAAS,aACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,OAAO,QAAS;AAC7D,QAAM,WAAW,cAAc,KAAK,EAAE,KAAK,EAAE,CAAC;AAC9C,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/roundToNearestMinute.ts
6
6
  var MODE_TO_ROUNDING_MODE = {
@@ -22,4 +22,4 @@ function roundToNearestMinute(input, options) {
22
22
  export {
23
23
  roundToNearestMinute
24
24
  };
25
- //# sourceMappingURL=chunk-UJW2FPI4.js.map
25
+ //# sourceMappingURL=chunk-RTNF2H34.js.map
@@ -1,5 +1,8 @@
1
+ import {
2
+ Temporal
3
+ } from "./chunk-AI5MRREC.js";
4
+
1
5
  // src/isPlainDateAfter.ts
2
- import { Temporal } from "@js-temporal/polyfill";
3
6
  function isPlainDateAfter(date1, date2) {
4
7
  return Temporal.PlainDate.compare(date1, date2) > 0;
5
8
  }
@@ -7,4 +10,4 @@ function isPlainDateAfter(date1, date2) {
7
10
  export {
8
11
  isPlainDateAfter
9
12
  };
10
- //# sourceMappingURL=chunk-BPZ7BRJW.js.map
13
+ //# sourceMappingURL=chunk-RW25XXOH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isPlainDateAfter.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\n\n/**\n * Returns true if the first plain date is after the second plain date.\n * Compares calendar dates without time or timezone considerations.\n *\n * @param date1 - First plain date\n * @param date2 - Second plain date\n * @returns true if date1 is after date2, false otherwise\n *\n * @example\n * ```ts\n * const jan20 = Temporal.PlainDate.from('2025-01-20');\n * const jan25 = Temporal.PlainDate.from('2025-01-25');\n *\n * isPlainDateAfter(jan25, jan20); // true\n * isPlainDateAfter(jan20, jan25); // false\n * isPlainDateAfter(jan20, jan20); // false\n * ```\n */\nexport function isPlainDateAfter(\n date1: Temporal.PlainDate,\n date2: Temporal.PlainDate\n): boolean {\n return Temporal.PlainDate.compare(date1, date2) > 0;\n}\n"],"mappings":";;;;;AAoBO,SAAS,iBACd,OACA,OACS;AACT,SAAO,SAAS,UAAU,QAAQ,OAAO,KAAK,IAAI;AACpD;","names":[]}
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
+ import {
5
+ Temporal
6
+ } from "./chunk-AI5MRREC.js";
4
7
 
5
8
  // src/shared/nowZoned.ts
6
- import { Temporal } from "@js-temporal/polyfill";
7
9
  function nowZoned() {
8
10
  return normalizeTemporalInput(Temporal.Now.instant());
9
11
  }
@@ -11,4 +13,4 @@ function nowZoned() {
11
13
  export {
12
14
  nowZoned
13
15
  };
14
- //# sourceMappingURL=chunk-QFNGYTTH.js.map
16
+ //# sourceMappingURL=chunk-RXTMPPOP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/nowZoned.ts"],"sourcesContent":["import { Temporal } from './temporal';\nimport { normalizeTemporalInput } from './normalizeTemporalInput';\n\nexport function nowZoned(): Temporal.ZonedDateTime {\n return normalizeTemporalInput(Temporal.Now.instant());\n}\n"],"mappings":";;;;;;;;AAGO,SAAS,WAAmC;AACjD,SAAO,uBAAuB,SAAS,IAAI,QAAQ,CAAC;AACtD;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/isSameNanosecond.ts
6
6
  function isSameNanosecond(date1, date2) {
@@ -12,4 +12,4 @@ function isSameNanosecond(date1, date2) {
12
12
  export {
13
13
  isSameNanosecond
14
14
  };
15
- //# sourceMappingURL=chunk-S63QUP4W.js.map
15
+ //# sourceMappingURL=chunk-SAFMGBXL.js.map
@@ -0,0 +1,19 @@
1
+ import {
2
+ differenceInMilliseconds
3
+ } from "./chunk-VXOQ7IG5.js";
4
+ import {
5
+ normalizeTemporalInput
6
+ } from "./chunk-65RGM7EG.js";
7
+
8
+ // src/differenceInHours.ts
9
+ function differenceInHours(laterDate, earlierDate, options) {
10
+ const zoned1 = normalizeTemporalInput(laterDate);
11
+ const zoned2 = normalizeTemporalInput(earlierDate);
12
+ const precise = differenceInMilliseconds(zoned1, zoned2) / 36e5;
13
+ return options?.fractional ? precise : Math.trunc(precise);
14
+ }
15
+
16
+ export {
17
+ differenceInHours
18
+ };
19
+ //# sourceMappingURL=chunk-SGHPW77A.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/differenceInHours.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\nimport { differenceInMilliseconds } from './shared/differenceInMilliseconds';\nimport type { DifferenceOptions } from './shared/differenceOptions';\n\n/**\n * Returns the number of hours between two datetimes.\n * The result is positive if laterDate is after earlierDate, negative if before.\n *\n * @param laterDate - The later datetime (Instant or ZonedDateTime)\n * @param earlierDate - The earlier datetime (Instant or ZonedDateTime)\n * @param options - Optional { fractional } to return the precise value\n * @returns The number of hours between the dates, truncated toward zero (pass { fractional: true } for the precise value)\n *\n * @example\n * ```ts\n * const later = Temporal.Instant.from('2025-01-20T18:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T15:00:00Z');\n *\n * differenceInHours(later, earlier); // 3\n * ```\n *\n * @example\n * ```ts\n * // Works with ZonedDateTime\n * const later = Temporal.ZonedDateTime.from('2025-01-21T00:00:00-05:00[America/New_York]');\n * const earlier = Temporal.ZonedDateTime.from('2025-01-20T15:00:00-05:00[America/New_York]');\n *\n * differenceInHours(later, earlier); // 9\n * ```\n *\n * @example\n * ```ts\n * // Handles different timezones - compares by instant\n * const tokyo = Temporal.ZonedDateTime.from('2025-01-21T00:00:00+09:00[Asia/Tokyo]');\n * const ny = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n *\n * differenceInHours(tokyo, ny); // 0 (same instant)\n * ```\n */\nexport function differenceInHours(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime,\n options?: DifferenceOptions\n): number {\n const zoned1 = normalizeTemporalInput(laterDate);\n const zoned2 = normalizeTemporalInput(earlierDate);\n\n const precise = differenceInMilliseconds(zoned1, zoned2) / 3600000;\n return options?.fractional ? precise : Math.trunc(precise);\n}\n"],"mappings":";;;;;;;;AAwCO,SAAS,kBACd,WACA,aACA,SACQ;AACR,QAAM,SAAS,uBAAuB,SAAS;AAC/C,QAAM,SAAS,uBAAuB,WAAW;AAEjD,QAAM,UAAU,yBAAyB,QAAQ,MAAM,IAAI;AAC3D,SAAO,SAAS,aAAa,UAAU,KAAK,MAAM,OAAO;AAC3D;","names":[]}
@@ -1,5 +1,8 @@
1
+ import {
2
+ Temporal
3
+ } from "./chunk-AI5MRREC.js";
4
+
1
5
  // src/isPlainTimeBefore.ts
2
- import { Temporal } from "@js-temporal/polyfill";
3
6
  function isPlainTimeBefore(time1, time2) {
4
7
  return Temporal.PlainTime.compare(time1, time2) < 0;
5
8
  }
@@ -7,4 +10,4 @@ function isPlainTimeBefore(time1, time2) {
7
10
  export {
8
11
  isPlainTimeBefore
9
12
  };
10
- //# sourceMappingURL=chunk-AJEIDKVJ.js.map
13
+ //# sourceMappingURL=chunk-T4J7PXYZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isPlainTimeBefore.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\n\n/**\n * Returns true if the first plain time is before the second plain time.\n * Compares wall-clock times without date or timezone considerations.\n *\n * @param time1 - First plain time\n * @param time2 - Second plain time\n * @returns true if time1 is before time2, false otherwise\n *\n * @example\n * ```ts\n * const morning = Temporal.PlainTime.from('09:00');\n * const evening = Temporal.PlainTime.from('17:00');\n *\n * isPlainTimeBefore(morning, evening); // true\n * isPlainTimeBefore(evening, morning); // false\n * isPlainTimeBefore(morning, morning); // false\n * ```\n */\nexport function isPlainTimeBefore(\n time1: Temporal.PlainTime,\n time2: Temporal.PlainTime\n): boolean {\n return Temporal.PlainTime.compare(time1, time2) < 0;\n}\n"],"mappings":";;;;;AAoBO,SAAS,kBACd,OACA,OACS;AACT,SAAO,SAAS,UAAU,QAAQ,OAAO,KAAK,IAAI;AACpD;","names":[]}
@@ -1,5 +1,8 @@
1
+ import {
2
+ Temporal
3
+ } from "./chunk-AI5MRREC.js";
4
+
1
5
  // src/today.ts
2
- import { Temporal } from "@js-temporal/polyfill";
3
6
  function today(timezone) {
4
7
  return Temporal.Now.zonedDateTimeISO(timezone).toPlainDate();
5
8
  }
@@ -7,4 +10,4 @@ function today(timezone) {
7
10
  export {
8
11
  today
9
12
  };
10
- //# sourceMappingURL=chunk-KZB6NERH.js.map
13
+ //# sourceMappingURL=chunk-TCEDHHNM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/today.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport type { Timezone } from './types';\n\n/**\n * Get today's date in the specified timezone.\n *\n * @param timezone - IANA timezone identifier (e.g., \"America/New_York\", \"Europe/London\") or \"UTC\"\n * @returns A Temporal.PlainDate representing today's date\n *\n * @example\n * ```typescript\n * import { today, browserTimezone } from '@gobrand/tiempo';\n *\n * // Server-side: Get today in UTC\n * const todayUtc = today(\"UTC\");\n *\n * // Server-side: Get today in user's timezone (from DB/preferences)\n * const todayUser = today(user.timezone);\n *\n * // Client-side: Get today in browser's timezone\n * const todayLocal = today(browserTimezone());\n *\n * // Get today in a specific timezone\n * const todayInMadrid = today(\"Europe/Madrid\");\n * ```\n */\nexport function today(timezone: Timezone): Temporal.PlainDate {\n return Temporal.Now.zonedDateTimeISO(timezone).toPlainDate();\n}\n"],"mappings":";;;;;AA0BO,SAAS,MAAM,UAAwC;AAC5D,SAAO,SAAS,IAAI,iBAAiB,QAAQ,EAAE,YAAY;AAC7D;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  addMinutes
3
- } from "./chunk-2XHAHSB6.js";
3
+ } from "./chunk-MXE44KVG.js";
4
4
 
5
5
  // src/subMinutes.ts
6
6
  function subMinutes(input, minutes) {
@@ -10,4 +10,4 @@ function subMinutes(input, minutes) {
10
10
  export {
11
11
  subMinutes
12
12
  };
13
- //# sourceMappingURL=chunk-J6G2I2TU.js.map
13
+ //# sourceMappingURL=chunk-TKV5JYQY.js.map
@@ -0,0 +1,19 @@
1
+ import {
2
+ differenceInMilliseconds
3
+ } from "./chunk-VXOQ7IG5.js";
4
+ import {
5
+ normalizeTemporalInput
6
+ } from "./chunk-65RGM7EG.js";
7
+
8
+ // src/differenceInSeconds.ts
9
+ function differenceInSeconds(laterDate, earlierDate, options) {
10
+ const zoned1 = normalizeTemporalInput(laterDate);
11
+ const zoned2 = normalizeTemporalInput(earlierDate);
12
+ const precise = differenceInMilliseconds(zoned1, zoned2) / 1e3;
13
+ return options?.fractional ? precise : Math.trunc(precise);
14
+ }
15
+
16
+ export {
17
+ differenceInSeconds
18
+ };
19
+ //# sourceMappingURL=chunk-TUOGC2TY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/differenceInSeconds.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\nimport { differenceInMilliseconds } from './shared/differenceInMilliseconds';\nimport type { DifferenceOptions } from './shared/differenceOptions';\n\n/**\n * Returns the number of seconds between two datetimes.\n * The result is positive if laterDate is after earlierDate, negative if before.\n *\n * @param laterDate - The later datetime (Instant or ZonedDateTime)\n * @param earlierDate - The earlier datetime (Instant or ZonedDateTime)\n * @param options - Optional { fractional } to return the precise value\n * @returns The number of seconds between the dates, truncated toward zero (pass { fractional: true } for the precise value)\n *\n * @example\n * ```ts\n * const later = Temporal.Instant.from('2025-01-20T12:30:25Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:30:20Z');\n *\n * differenceInSeconds(later, earlier); // 5\n * ```\n *\n * @example\n * ```ts\n * // Works with ZonedDateTime\n * const later = Temporal.ZonedDateTime.from('2025-01-20T15:01:00-05:00[America/New_York]');\n * const earlier = Temporal.ZonedDateTime.from('2025-01-20T15:00:00-05:00[America/New_York]');\n *\n * differenceInSeconds(later, earlier); // 60\n * ```\n *\n * @example\n * ```ts\n * // Handles different timezones - compares by instant\n * const tokyo = Temporal.ZonedDateTime.from('2025-01-21T00:00:00+09:00[Asia/Tokyo]');\n * const ny = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n *\n * differenceInSeconds(tokyo, ny); // 0 (same instant)\n * ```\n */\nexport function differenceInSeconds(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime,\n options?: DifferenceOptions\n): number {\n const zoned1 = normalizeTemporalInput(laterDate);\n const zoned2 = normalizeTemporalInput(earlierDate);\n\n const precise = differenceInMilliseconds(zoned1, zoned2) / 1000;\n return options?.fractional ? precise : Math.trunc(precise);\n}\n"],"mappings":";;;;;;;;AAwCO,SAAS,oBACd,WACA,aACA,SACQ;AACR,QAAM,SAAS,uBAAuB,SAAS;AAC/C,QAAM,SAAS,uBAAuB,WAAW;AAEjD,QAAM,UAAU,yBAAyB,QAAQ,MAAM,IAAI;AAC3D,SAAO,SAAS,aAAa,UAAU,KAAK,MAAM,OAAO;AAC3D;","names":[]}
@@ -0,0 +1,19 @@
1
+ import {
2
+ plainDateToZonedDateTime
3
+ } from "./chunk-AHBTUFRW.js";
4
+ import {
5
+ normalizeTemporalInput
6
+ } from "./chunk-65RGM7EG.js";
7
+ import {
8
+ isPlainDate
9
+ } from "./chunk-AI5MRREC.js";
10
+
11
+ // src/shared/normalizeWithPlainDate.ts
12
+ function normalizeWithPlainDate(input, timezone) {
13
+ return isPlainDate(input) ? plainDateToZonedDateTime(input, timezone) : normalizeTemporalInput(input);
14
+ }
15
+
16
+ export {
17
+ normalizeWithPlainDate
18
+ };
19
+ //# sourceMappingURL=chunk-TWZNSMKO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/normalizeWithPlainDate.ts"],"sourcesContent":["import { isPlainDate } from './temporal';\nimport type { Temporal } from '@js-temporal/polyfill';\nimport type { Timezone } from '../types';\nimport { normalizeTemporalInput } from './normalizeTemporalInput';\nimport { plainDateToZonedDateTime } from './plainDateToZonedDateTime';\n\n/**\n * @internal\n * Normalizes any temporal input (Instant, ZonedDateTime, or PlainDate) to ZonedDateTime.\n * - Instant → UTC ZonedDateTime\n * - ZonedDateTime → returned as-is\n * - PlainDate → ZonedDateTime at midnight in the specified timezone\n *\n * This is an internal helper - do not use directly.\n */\nexport function normalizeWithPlainDate(\n input: Temporal.Instant | Temporal.ZonedDateTime\n): Temporal.ZonedDateTime;\nexport function normalizeWithPlainDate(\n input: Temporal.PlainDate,\n timezone: Timezone\n): Temporal.ZonedDateTime;\nexport function normalizeWithPlainDate(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone\n): Temporal.ZonedDateTime;\nexport function normalizeWithPlainDate(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone\n): Temporal.ZonedDateTime {\n return isPlainDate(input)\n ? plainDateToZonedDateTime(input, timezone!)\n : normalizeTemporalInput(input);\n}\n"],"mappings":";;;;;;;;;;;AA0BO,SAAS,uBACd,OACA,UACwB;AACxB,SAAO,YAAY,KAAK,IACpB,yBAAyB,OAAO,QAAS,IACzC,uBAAuB,KAAK;AAClC;","names":[]}
@@ -1,9 +1,8 @@
1
1
  import {
2
2
  normalizeWithPlainDate
3
- } from "./chunk-KGVUENQO.js";
3
+ } from "./chunk-TWZNSMKO.js";
4
4
 
5
5
  // src/startOfDay.ts
6
- import "@js-temporal/polyfill";
7
6
  function startOfDay(input, timezone) {
8
7
  const zonedDateTime = normalizeWithPlainDate(input, timezone);
9
8
  return zonedDateTime.startOfDay();
@@ -12,4 +11,4 @@ function startOfDay(input, timezone) {
12
11
  export {
13
12
  startOfDay
14
13
  };
15
- //# sourceMappingURL=chunk-YIT6EMBC.js.map
14
+ //# sourceMappingURL=chunk-TYYV5UYX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/startOfDay.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport type { Timezone } from './types';\nimport { normalizeWithPlainDate } from './shared/normalizeWithPlainDate';\n\n/**\n * Returns a ZonedDateTime representing the first moment of the day (midnight).\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @returns ZonedDateTime at 00:00:00.000000000\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-01-20T12:00:00Z');\n * const start = startOfDay(instant);\n * // 2025-01-20T00:00:00Z[UTC]\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (uses its timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-01-20T15:30:00-05:00[America/New_York]');\n * const start = startOfDay(zoned);\n * // 2025-01-20T00:00:00-05:00[America/New_York]\n * ```\n *\n * @example\n * ```ts\n * // From PlainDate (requires timezone)\n * const date = Temporal.PlainDate.from('2025-01-20');\n * const start = startOfDay(date, 'America/New_York');\n * // 2025-01-20T00:00:00-05:00[America/New_York]\n * ```\n */\nexport function startOfDay(\n input: Temporal.Instant | Temporal.ZonedDateTime\n): Temporal.ZonedDateTime;\nexport function startOfDay(\n input: Temporal.PlainDate,\n timezone: Timezone\n): Temporal.ZonedDateTime;\nexport function startOfDay(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeWithPlainDate(input, timezone!);\n return zonedDateTime.startOfDay();\n}\n"],"mappings":";;;;;AAyCO,SAAS,WACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,OAAO,QAAS;AAC7D,SAAO,cAAc,WAAW;AAClC;","names":[]}
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  isAfter
3
- } from "./chunk-WY63VEXE.js";
3
+ } from "./chunk-JM42PLWS.js";
4
4
  import {
5
5
  normalizeTemporalInput
6
- } from "./chunk-MJSZNWCV.js";
6
+ } from "./chunk-65RGM7EG.js";
7
7
 
8
8
  // src/isAfter.ts
9
- import "@js-temporal/polyfill";
10
9
  function isAfter2(date1, date2) {
11
10
  const zoned1 = normalizeTemporalInput(date1);
12
11
  const zoned2 = normalizeTemporalInput(date2);
@@ -16,4 +15,4 @@ function isAfter2(date1, date2) {
16
15
  export {
17
16
  isAfter2 as isAfter
18
17
  };
19
- //# sourceMappingURL=chunk-7VLSSOVC.js.map
18
+ //# sourceMappingURL=chunk-UAYBKORB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isAfter.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\nimport { isAfter as isAfterInternal } from './shared/isAfter';\n\n/**\n * Returns true if the first datetime is after the second datetime.\n * Compares by the underlying instant (epoch time), not by calendar date/time.\n *\n * @param date1 - First datetime (Instant or ZonedDateTime)\n * @param date2 - Second datetime (Instant or ZonedDateTime)\n * @returns true if date1 is after date2, false otherwise\n *\n * @example\n * ```ts\n * const earlier = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n * const later = Temporal.ZonedDateTime.from('2025-01-20T16:00:00-05:00[America/New_York]');\n *\n * isAfter(later, earlier); // true\n * isAfter(earlier, later); // false\n * isAfter(earlier, earlier); // false\n * ```\n *\n * @example\n * ```ts\n * // Works with Instant too\n * const instant1 = Temporal.Instant.from('2025-01-20T15:00:00Z');\n * const instant2 = Temporal.Instant.from('2025-01-20T16:00:00Z');\n *\n * isAfter(instant2, instant1); // true\n * ```\n *\n * @example\n * ```ts\n * // Different timezones - compares by instant\n * const ny = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n * const tokyo = Temporal.ZonedDateTime.from('2025-01-21T00:00:00+09:00[Asia/Tokyo]');\n *\n * isAfter(tokyo, ny); // false\n * // NY 10:00 is 15:00 UTC, Tokyo 00:00 is 15:00 UTC the previous day (same instant)\n * ```\n */\nexport function isAfter(\n date1: Temporal.Instant | Temporal.ZonedDateTime,\n date2: Temporal.Instant | Temporal.ZonedDateTime\n): boolean {\n const zoned1 = normalizeTemporalInput(date1);\n const zoned2 = normalizeTemporalInput(date2);\n\n return isAfterInternal(zoned1, zoned2);\n}\n"],"mappings":";;;;;;;;AAyCO,SAASA,SACd,OACA,OACS;AACT,QAAM,SAAS,uBAAuB,KAAK;AAC3C,QAAM,SAAS,uBAAuB,KAAK;AAE3C,SAAO,QAAgB,QAAQ,MAAM;AACvC;","names":["isAfter"]}
@@ -1,9 +1,8 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/differenceInNanoseconds.ts
6
- import "@js-temporal/polyfill";
7
6
  function differenceInNanoseconds(laterDate, earlierDate) {
8
7
  const zoned1 = normalizeTemporalInput(laterDate);
9
8
  const zoned2 = normalizeTemporalInput(earlierDate);
@@ -13,4 +12,4 @@ function differenceInNanoseconds(laterDate, earlierDate) {
13
12
  export {
14
13
  differenceInNanoseconds
15
14
  };
16
- //# sourceMappingURL=chunk-OABS374T.js.map
15
+ //# sourceMappingURL=chunk-VBDGWVJ4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/differenceInNanoseconds.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\n\n/**\n * Returns the number of nanoseconds between two datetimes.\n * The result is positive if laterDate is after earlierDate, negative if before.\n *\n * @param laterDate - The later datetime (Instant or ZonedDateTime)\n * @param earlierDate - The earlier datetime (Instant or ZonedDateTime)\n * @returns The number of nanoseconds between the dates as a BigInt\n *\n * @example\n * ```ts\n * const later = Temporal.Instant.from('2025-01-20T12:30:20.000000500Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:30:20.000000000Z');\n *\n * differenceInNanoseconds(later, earlier); // 500n\n * ```\n *\n * @example\n * ```ts\n * // Works with ZonedDateTime\n * const later = Temporal.ZonedDateTime.from('2025-01-20T15:00:00.000000001-05:00[America/New_York]');\n * const earlier = Temporal.ZonedDateTime.from('2025-01-20T15:00:00.000000000-05:00[America/New_York]');\n *\n * differenceInNanoseconds(later, earlier); // 1n\n * ```\n *\n * @example\n * ```ts\n * // Handles different timezones - compares by instant\n * const tokyo = Temporal.ZonedDateTime.from('2025-01-21T00:00:00+09:00[Asia/Tokyo]');\n * const ny = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n *\n * differenceInNanoseconds(tokyo, ny); // 0n (same instant)\n * ```\n */\nexport function differenceInNanoseconds(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime\n): bigint {\n const zoned1 = normalizeTemporalInput(laterDate);\n const zoned2 = normalizeTemporalInput(earlierDate);\n\n return zoned1.epochNanoseconds - zoned2.epochNanoseconds;\n}\n"],"mappings":";;;;;AAqCO,SAAS,wBACd,WACA,aACQ;AACR,QAAM,SAAS,uBAAuB,SAAS;AAC/C,QAAM,SAAS,uBAAuB,WAAW;AAEjD,SAAO,OAAO,mBAAmB,OAAO;AAC1C;","names":[]}
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
+ import {
5
+ Temporal
6
+ } from "./chunk-AI5MRREC.js";
4
7
 
5
8
  // src/eachYearOfInterval.ts
6
- import { Temporal } from "@js-temporal/polyfill";
7
9
  function eachYearOfInterval(interval) {
8
10
  const startZoned = normalizeTemporalInput(interval.start);
9
11
  const endZoned = normalizeTemporalInput(interval.end);
@@ -27,4 +29,4 @@ function eachYearOfInterval(interval) {
27
29
  export {
28
30
  eachYearOfInterval
29
31
  };
30
- //# sourceMappingURL=chunk-BUX26GTD.js.map
32
+ //# sourceMappingURL=chunk-VDEZJB42.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/eachYearOfInterval.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\n\n/**\n * Returns an array of ZonedDateTime objects for each year within the interval.\n * Each element represents the first moment of the year (January 1st at midnight).\n * The interval is inclusive of both start and end years.\n *\n * For Instant inputs, UTC is used as the timezone.\n * For ZonedDateTime inputs, the timezone of the start date is preserved.\n *\n * @param interval - The interval with start and end datetimes\n * @returns Array of ZonedDateTime at start of each year in the interval\n *\n * @example\n * ```ts\n * const start = Temporal.ZonedDateTime.from('2022-06-15T10:00:00Z[UTC]');\n * const end = Temporal.ZonedDateTime.from('2025-03-20T14:00:00Z[UTC]');\n *\n * const years = eachYearOfInterval({ start, end });\n * // [\n * // 2022-01-01T00:00:00Z[UTC],\n * // 2023-01-01T00:00:00Z[UTC],\n * // 2024-01-01T00:00:00Z[UTC],\n * // 2025-01-01T00:00:00Z[UTC]\n * // ]\n * ```\n *\n * @example\n * ```ts\n * // Single year\n * const start = Temporal.ZonedDateTime.from('2025-01-15T00:00:00Z[UTC]');\n * const end = Temporal.ZonedDateTime.from('2025-12-31T23:59:59Z[UTC]');\n *\n * const years = eachYearOfInterval({ start, end });\n * // [2025-01-01T00:00:00Z[UTC]]\n * ```\n *\n * @example\n * ```ts\n * // With timezone\n * const start = Temporal.ZonedDateTime.from('2024-01-01T00:00:00-05:00[America/New_York]');\n * const end = Temporal.ZonedDateTime.from('2026-06-15T00:00:00-04:00[America/New_York]');\n *\n * const years = eachYearOfInterval({ start, end });\n * // [\n * // 2024-01-01T00:00:00-05:00[America/New_York],\n * // 2025-01-01T00:00:00-05:00[America/New_York],\n * // 2026-01-01T00:00:00-05:00[America/New_York]\n * // ]\n * ```\n */\nexport function eachYearOfInterval(interval: {\n start: Temporal.Instant | Temporal.ZonedDateTime;\n end: Temporal.Instant | Temporal.ZonedDateTime;\n}): Temporal.ZonedDateTime[] {\n const startZoned = normalizeTemporalInput(interval.start);\n const endZoned = normalizeTemporalInput(interval.end);\n\n const timezone = startZoned.timeZoneId;\n const startYear = startZoned.year;\n\n // Get end year in the same timezone\n const endInTimezone = endZoned.withTimeZone(timezone);\n const endYear = endInTimezone.year;\n\n const years: Temporal.ZonedDateTime[] = [];\n\n for (let year = startYear; year <= endYear; year++) {\n const firstOfYear = Temporal.PlainDate.from({ year, month: 1, day: 1 });\n years.push(\n firstOfYear.toZonedDateTime({\n timeZone: timezone,\n plainTime: new Temporal.PlainTime(),\n })\n );\n }\n\n return years;\n}\n"],"mappings":";;;;;;;;AAoDO,SAAS,mBAAmB,UAGN;AAC3B,QAAM,aAAa,uBAAuB,SAAS,KAAK;AACxD,QAAM,WAAW,uBAAuB,SAAS,GAAG;AAEpD,QAAM,WAAW,WAAW;AAC5B,QAAM,YAAY,WAAW;AAG7B,QAAM,gBAAgB,SAAS,aAAa,QAAQ;AACpD,QAAM,UAAU,cAAc;AAE9B,QAAM,QAAkC,CAAC;AAEzC,WAAS,OAAO,WAAW,QAAQ,SAAS,QAAQ;AAClD,UAAM,cAAc,SAAS,UAAU,KAAK,EAAE,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;AACtE,UAAM;AAAA,MACJ,YAAY,gBAAgB;AAAA,QAC1B,UAAU;AAAA,QACV,WAAW,IAAI,SAAS,UAAU;AAAA,MACpC,CAAC;AAAA,IACH;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,5 +1,8 @@
1
+ import {
2
+ Temporal
3
+ } from "./chunk-AI5MRREC.js";
4
+
1
5
  // src/isPlainDateEqual.ts
2
- import { Temporal } from "@js-temporal/polyfill";
3
6
  function isPlainDateEqual(date1, date2) {
4
7
  return Temporal.PlainDate.compare(date1, date2) === 0;
5
8
  }
@@ -7,4 +10,4 @@ function isPlainDateEqual(date1, date2) {
7
10
  export {
8
11
  isPlainDateEqual
9
12
  };
10
- //# sourceMappingURL=chunk-O6RIN7K3.js.map
13
+ //# sourceMappingURL=chunk-VJGNLAF2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isPlainDateEqual.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\n\n/**\n * Returns true if the two plain dates are equal.\n * Compares calendar dates without time or timezone considerations.\n *\n * @param date1 - First plain date\n * @param date2 - Second plain date\n * @returns true if date1 equals date2, false otherwise\n *\n * @example\n * ```ts\n * const jan20a = Temporal.PlainDate.from('2025-01-20');\n * const jan20b = Temporal.PlainDate.from('2025-01-20');\n * const jan25 = Temporal.PlainDate.from('2025-01-25');\n *\n * isPlainDateEqual(jan20a, jan20b); // true\n * isPlainDateEqual(jan20a, jan25); // false\n * ```\n */\nexport function isPlainDateEqual(\n date1: Temporal.PlainDate,\n date2: Temporal.PlainDate\n): boolean {\n return Temporal.PlainDate.compare(date1, date2) === 0;\n}\n"],"mappings":";;;;;AAoBO,SAAS,iBACd,OACA,OACS;AACT,SAAO,SAAS,UAAU,QAAQ,OAAO,KAAK,MAAM;AACtD;","names":[]}
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  isBefore
3
- } from "./chunk-WUAIUEH7.js";
3
+ } from "./chunk-EZJDWFFE.js";
4
4
  import {
5
5
  normalizeTemporalInput
6
- } from "./chunk-MJSZNWCV.js";
6
+ } from "./chunk-65RGM7EG.js";
7
7
 
8
8
  // src/isBefore.ts
9
- import "@js-temporal/polyfill";
10
9
  function isBefore2(date1, date2) {
11
10
  const zoned1 = normalizeTemporalInput(date1);
12
11
  const zoned2 = normalizeTemporalInput(date2);
@@ -16,4 +15,4 @@ function isBefore2(date1, date2) {
16
15
  export {
17
16
  isBefore2 as isBefore
18
17
  };
19
- //# sourceMappingURL=chunk-ZDA7GSWU.js.map
18
+ //# sourceMappingURL=chunk-VTP4QJY6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isBefore.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\nimport { isBefore as isBeforeInternal } from './shared/isBefore';\n\n/**\n * Returns true if the first datetime is before the second datetime.\n * Compares by the underlying instant (epoch time), not by calendar date/time.\n *\n * @param date1 - First datetime (Instant or ZonedDateTime)\n * @param date2 - Second datetime (Instant or ZonedDateTime)\n * @returns true if date1 is before date2, false otherwise\n *\n * @example\n * ```ts\n * const earlier = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n * const later = Temporal.ZonedDateTime.from('2025-01-20T16:00:00-05:00[America/New_York]');\n *\n * isBefore(earlier, later); // true\n * isBefore(later, earlier); // false\n * isBefore(earlier, earlier); // false\n * ```\n *\n * @example\n * ```ts\n * // Works with Instant too\n * const instant1 = Temporal.Instant.from('2025-01-20T15:00:00Z');\n * const instant2 = Temporal.Instant.from('2025-01-20T16:00:00Z');\n *\n * isBefore(instant1, instant2); // true\n * ```\n *\n * @example\n * ```ts\n * // Different timezones - compares by instant\n * const ny = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n * const tokyo = Temporal.ZonedDateTime.from('2025-01-21T00:00:00+09:00[Asia/Tokyo]');\n *\n * isBefore(ny, tokyo); // true\n * // NY 10:00 is 15:00 UTC, Tokyo 00:00 is 15:00 UTC the previous day\n * ```\n */\nexport function isBefore(\n date1: Temporal.Instant | Temporal.ZonedDateTime,\n date2: Temporal.Instant | Temporal.ZonedDateTime\n): boolean {\n const zoned1 = normalizeTemporalInput(date1);\n const zoned2 = normalizeTemporalInput(date2);\n\n return isBeforeInternal(zoned1, zoned2);\n}\n"],"mappings":";;;;;;;;AAyCO,SAASA,UACd,OACA,OACS;AACT,QAAM,SAAS,uBAAuB,KAAK;AAC3C,QAAM,SAAS,uBAAuB,KAAK;AAE3C,SAAO,SAAiB,QAAQ,MAAM;AACxC;","names":["isBefore"]}
@@ -1,9 +1,12 @@
1
+ import {
2
+ isInstant
3
+ } from "./chunk-AI5MRREC.js";
4
+
1
5
  // src/toIso9075.ts
2
- import { Temporal } from "@js-temporal/polyfill";
3
6
  function toIso9075(input, options = {}) {
4
7
  const { mode = "utc", representation = "complete" } = options;
5
8
  let zdt;
6
- if (input instanceof Temporal.Instant) {
9
+ if (isInstant(input)) {
7
10
  zdt = input.toZonedDateTimeISO("UTC");
8
11
  } else {
9
12
  zdt = mode === "utc" ? input.toInstant().toZonedDateTimeISO("UTC") : input;
@@ -27,4 +30,4 @@ function pad(n) {
27
30
  export {
28
31
  toIso9075
29
32
  };
30
- //# sourceMappingURL=chunk-DFLGGK4F.js.map
33
+ //# sourceMappingURL=chunk-VTXBG2JV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/toIso9075.ts"],"sourcesContent":["import { isInstant } from './shared/temporal';\nimport type { Temporal } from '@js-temporal/polyfill';\n\nexport type Iso9075Mode = 'utc' | 'local';\nexport type Iso9075Representation = 'complete' | 'date' | 'time';\n\nexport interface ToIso9075Options {\n /**\n * Which time to output.\n * - 'utc' (default): convert to UTC before formatting\n * - 'local': use the local time of the ZonedDateTime\n */\n mode?: Iso9075Mode;\n /**\n * What to include in the output.\n * - 'complete' (default): date and time (2019-09-18 19:00:52)\n * - 'date': date only (2019-09-18)\n * - 'time': time only (19:00:52)\n */\n representation?: Iso9075Representation;\n}\n\n/**\n * Convert a Temporal.Instant to an ISO 9075 (SQL) formatted string in UTC.\n */\nexport function toIso9075(\n input: Temporal.Instant,\n options?: Omit<ToIso9075Options, 'mode'>\n): string;\n\n/**\n * Convert a Temporal.ZonedDateTime to an ISO 9075 (SQL) formatted string.\n *\n * @param input - A Temporal.ZonedDateTime\n * @param options - Format options\n *\n * @example\n * ```typescript\n * const zoned = Temporal.ZonedDateTime.from(\"2025-01-20T15:00:00-05:00[America/New_York]\");\n *\n * toIso9075(zoned); // \"2025-01-20 20:00:00\" (UTC, default)\n * toIso9075(zoned, { mode: 'utc' }); // \"2025-01-20 20:00:00\"\n * toIso9075(zoned, { mode: 'local' }); // \"2025-01-20 15:00:00\"\n * toIso9075(zoned, { representation: 'date' }); // \"2025-01-20\"\n * toIso9075(zoned, { representation: 'time' }); // \"20:00:00\"\n * ```\n */\nexport function toIso9075(\n input: Temporal.ZonedDateTime,\n options?: ToIso9075Options\n): string;\n\nexport function toIso9075(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n options: ToIso9075Options = {}\n): string {\n const { mode = 'utc', representation = 'complete' } = options;\n\n let zdt: Temporal.ZonedDateTime;\n\n if (isInstant(input)) {\n zdt = input.toZonedDateTimeISO('UTC');\n } else {\n // ZonedDateTime: apply mode\n zdt = mode === 'utc' ? input.toInstant().toZonedDateTimeISO('UTC') : input;\n }\n\n const year = zdt.year;\n const month = zdt.month;\n const day = zdt.day;\n const hour = zdt.hour;\n const minute = zdt.minute;\n const second = zdt.second;\n\n const datePart = `${year}-${pad(month)}-${pad(day)}`;\n const timePart = `${pad(hour)}:${pad(minute)}:${pad(second)}`;\n\n if (representation === 'date') return datePart;\n if (representation === 'time') return timePart;\n return `${datePart} ${timePart}`;\n}\n\nfunction pad(n: number): string {\n return n.toString().padStart(2, '0');\n}\n"],"mappings":";;;;;AAoDO,SAAS,UACd,OACA,UAA4B,CAAC,GACrB;AACR,QAAM,EAAE,OAAO,OAAO,iBAAiB,WAAW,IAAI;AAEtD,MAAI;AAEJ,MAAI,UAAU,KAAK,GAAG;AACpB,UAAM,MAAM,mBAAmB,KAAK;AAAA,EACtC,OAAO;AAEL,UAAM,SAAS,QAAQ,MAAM,UAAU,EAAE,mBAAmB,KAAK,IAAI;AAAA,EACvE;AAEA,QAAM,OAAO,IAAI;AACjB,QAAM,QAAQ,IAAI;AAClB,QAAM,MAAM,IAAI;AAChB,QAAM,OAAO,IAAI;AACjB,QAAM,SAAS,IAAI;AACnB,QAAM,SAAS,IAAI;AAEnB,QAAM,WAAW,GAAG,IAAI,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,GAAG,CAAC;AAClD,QAAM,WAAW,GAAG,IAAI,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC;AAE3D,MAAI,mBAAmB,OAAQ,QAAO;AACtC,MAAI,mBAAmB,OAAQ,QAAO;AACtC,SAAO,GAAG,QAAQ,IAAI,QAAQ;AAChC;AAEA,SAAS,IAAI,GAAmB;AAC9B,SAAO,EAAE,SAAS,EAAE,SAAS,GAAG,GAAG;AACrC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  addSeconds
3
- } from "./chunk-NRD5HRZV.js";
3
+ } from "./chunk-IOLV6PTH.js";
4
4
 
5
5
  // src/subSeconds.ts
6
6
  function subSeconds(input, seconds) {
@@ -10,4 +10,4 @@ function subSeconds(input, seconds) {
10
10
  export {
11
11
  subSeconds
12
12
  };
13
- //# sourceMappingURL=chunk-BH2YB4MV.js.map
13
+ //# sourceMappingURL=chunk-VXG2IG2N.js.map
@@ -1,5 +1,4 @@
1
1
  // src/shared/differenceInMilliseconds.ts
2
- import "@js-temporal/polyfill";
3
2
  function differenceInMilliseconds(laterDate, earlierDate) {
4
3
  return laterDate.epochMilliseconds - earlierDate.epochMilliseconds;
5
4
  }
@@ -7,4 +6,4 @@ function differenceInMilliseconds(laterDate, earlierDate) {
7
6
  export {
8
7
  differenceInMilliseconds
9
8
  };
10
- //# sourceMappingURL=chunk-AJ4JBKJK.js.map
9
+ //# sourceMappingURL=chunk-VXOQ7IG5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/differenceInMilliseconds.ts"],"sourcesContent":["import { Temporal } from './temporal';\n\nexport function differenceInMilliseconds(\n laterDate: Temporal.ZonedDateTime,\n earlierDate: Temporal.ZonedDateTime\n): number {\n return laterDate.epochMilliseconds - earlierDate.epochMilliseconds;\n}\n"],"mappings":";AAEO,SAAS,yBACd,WACA,aACQ;AACR,SAAO,UAAU,oBAAoB,YAAY;AACnD;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/addMicroseconds.ts
6
6
  function addMicroseconds(input, microseconds) {
@@ -11,4 +11,4 @@ function addMicroseconds(input, microseconds) {
11
11
  export {
12
12
  addMicroseconds
13
13
  };
14
- //# sourceMappingURL=chunk-V27NUBXQ.js.map
14
+ //# sourceMappingURL=chunk-WWLDINLH.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/differenceInYears.ts
6
- import "@js-temporal/polyfill";
7
- function differenceInYears(laterDate, earlierDate) {
6
+ function differenceInYears(laterDate, earlierDate, options) {
8
7
  const zoned1 = normalizeTemporalInput(laterDate);
9
8
  const zoned2 = normalizeTemporalInput(earlierDate);
10
9
  const duration = zoned2.until(zoned1, { largestUnit: "hours" });
11
- return duration.total({ unit: "years", relativeTo: zoned2 });
10
+ const precise = duration.total({ unit: "years", relativeTo: zoned2 });
11
+ return options?.fractional ? precise : Math.trunc(precise);
12
12
  }
13
13
 
14
14
  export {
15
15
  differenceInYears
16
16
  };
17
- //# sourceMappingURL=chunk-CHW2EN2O.js.map
17
+ //# sourceMappingURL=chunk-X3T7QMBA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/differenceInYears.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\nimport type { DifferenceOptions } from './shared/differenceOptions';\n\n/**\n * Returns the number of years between two datetimes.\n * The result is positive if laterDate is after earlierDate, negative if before.\n *\n * This function uses calendar-aware calculation, which means it properly handles\n * leap years (366 days) and regular years (365 days).\n *\n * Instant inputs are converted to UTC for calendar calculations.\n * For ZonedDateTime inputs, their timezone is preserved.\n *\n * @param laterDate - The later datetime (Instant or ZonedDateTime)\n * @param earlierDate - The earlier datetime (Instant or ZonedDateTime)\n * @param options - Optional { fractional } to return the precise value\n * @returns The number of years between the dates, truncated toward zero (pass { fractional: true } for the precise value)\n *\n * @example\n * ```ts\n * const later = Temporal.Instant.from('2028-01-20T12:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:00:00Z');\n *\n * differenceInYears(later, earlier); // 3\n * ```\n *\n * @example\n * ```ts\n * // Works with ZonedDateTime\n * const later = Temporal.ZonedDateTime.from('2030-06-15T15:00:00-05:00[America/New_York]');\n * const earlier = Temporal.ZonedDateTime.from('2025-06-15T15:00:00-05:00[America/New_York]');\n *\n * differenceInYears(later, earlier); // 5\n * ```\n *\n * @example\n * ```ts\n * // Pass { fractional: true } for partial-unit precision\n * const later = Temporal.Instant.from('2025-07-20T12:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:00:00Z');\n *\n * differenceInYears(later, earlier); // 0\n * differenceInYears(later, earlier, { fractional: true }); // ~0.5\n * ```\n */\nexport function differenceInYears(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime,\n options?: DifferenceOptions\n): number {\n const zoned1 = normalizeTemporalInput(laterDate);\n const zoned2 = normalizeTemporalInput(earlierDate);\n\n const duration = zoned2.until(zoned1, { largestUnit: 'hours' });\n const precise = duration.total({ unit: 'years', relativeTo: zoned2 });\n return options?.fractional ? precise : Math.trunc(precise);\n}\n"],"mappings":";;;;;AA8CO,SAAS,kBACd,WACA,aACA,SACQ;AACR,QAAM,SAAS,uBAAuB,SAAS;AAC/C,QAAM,SAAS,uBAAuB,WAAW;AAEjD,QAAM,WAAW,OAAO,MAAM,QAAQ,EAAE,aAAa,QAAQ,CAAC;AAC9D,QAAM,UAAU,SAAS,MAAM,EAAE,MAAM,SAAS,YAAY,OAAO,CAAC;AACpE,SAAO,SAAS,aAAa,UAAU,KAAK,MAAM,OAAO;AAC3D;","names":[]}
@@ -0,0 +1,19 @@
1
+ import {
2
+ differenceInMilliseconds
3
+ } from "./chunk-VXOQ7IG5.js";
4
+ import {
5
+ normalizeTemporalInput
6
+ } from "./chunk-65RGM7EG.js";
7
+
8
+ // src/differenceInMinutes.ts
9
+ function differenceInMinutes(laterDate, earlierDate, options) {
10
+ const zoned1 = normalizeTemporalInput(laterDate);
11
+ const zoned2 = normalizeTemporalInput(earlierDate);
12
+ const precise = differenceInMilliseconds(zoned1, zoned2) / 6e4;
13
+ return options?.fractional ? precise : Math.trunc(precise);
14
+ }
15
+
16
+ export {
17
+ differenceInMinutes
18
+ };
19
+ //# sourceMappingURL=chunk-XVAVCEKT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/differenceInMinutes.ts"],"sourcesContent":["import { Temporal } from './shared/temporal';\nimport { normalizeTemporalInput } from './shared/normalizeTemporalInput';\nimport { differenceInMilliseconds } from './shared/differenceInMilliseconds';\nimport type { DifferenceOptions } from './shared/differenceOptions';\n\n/**\n * Returns the number of minutes between two datetimes.\n * The result is positive if laterDate is after earlierDate, negative if before.\n *\n * @param laterDate - The later datetime (Instant or ZonedDateTime)\n * @param earlierDate - The earlier datetime (Instant or ZonedDateTime)\n * @param options - Optional { fractional } to return the precise value\n * @returns The number of minutes between the dates, truncated toward zero (pass { fractional: true } for the precise value)\n *\n * @example\n * ```ts\n * const later = Temporal.Instant.from('2025-01-20T12:45:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:30:00Z');\n *\n * differenceInMinutes(later, earlier); // 15\n * ```\n *\n * @example\n * ```ts\n * // Works with ZonedDateTime\n * const later = Temporal.ZonedDateTime.from('2025-01-20T16:00:00-05:00[America/New_York]');\n * const earlier = Temporal.ZonedDateTime.from('2025-01-20T15:00:00-05:00[America/New_York]');\n *\n * differenceInMinutes(later, earlier); // 60\n * ```\n *\n * @example\n * ```ts\n * // Handles different timezones - compares by instant\n * const tokyo = Temporal.ZonedDateTime.from('2025-01-21T00:00:00+09:00[Asia/Tokyo]');\n * const ny = Temporal.ZonedDateTime.from('2025-01-20T10:00:00-05:00[America/New_York]');\n *\n * differenceInMinutes(tokyo, ny); // 0 (same instant)\n * ```\n */\nexport function differenceInMinutes(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime,\n options?: DifferenceOptions\n): number {\n const zoned1 = normalizeTemporalInput(laterDate);\n const zoned2 = normalizeTemporalInput(earlierDate);\n\n const precise = differenceInMilliseconds(zoned1, zoned2) / 60000;\n return options?.fractional ? precise : Math.trunc(precise);\n}\n"],"mappings":";;;;;;;;AAwCO,SAAS,oBACd,WACA,aACA,SACQ;AACR,QAAM,SAAS,uBAAuB,SAAS;AAC/C,QAAM,SAAS,uBAAuB,WAAW;AAEjD,QAAM,UAAU,yBAAyB,QAAQ,MAAM,IAAI;AAC3D,SAAO,SAAS,aAAa,UAAU,KAAK,MAAM,OAAO;AAC3D;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/addYears.ts
6
6
  function addYears(input, years) {
@@ -11,4 +11,4 @@ function addYears(input, years) {
11
11
  export {
12
12
  addYears
13
13
  };
14
- //# sourceMappingURL=chunk-Q2F3HEXB.js.map
14
+ //# sourceMappingURL=chunk-YMS7JXBN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  addMonths
3
- } from "./chunk-7ATM7AXL.js";
3
+ } from "./chunk-3RSGMPWR.js";
4
4
 
5
5
  // src/subMonths.ts
6
6
  function subMonths(input, months) {
@@ -10,4 +10,4 @@ function subMonths(input, months) {
10
10
  export {
11
11
  subMonths
12
12
  };
13
- //# sourceMappingURL=chunk-52NEOY34.js.map
13
+ //# sourceMappingURL=chunk-YNV6WGXV.js.map
@@ -1,8 +1,11 @@
1
+ import {
2
+ isInstant
3
+ } from "./chunk-AI5MRREC.js";
4
+
1
5
  // src/toIso.ts
2
- import { Temporal } from "@js-temporal/polyfill";
3
6
  function toIso(input, options = {}) {
4
7
  const { mode = "utc" } = options;
5
- if (input instanceof Temporal.Instant) {
8
+ if (isInstant(input)) {
6
9
  return input.toString();
7
10
  }
8
11
  if (mode === "offset") {
@@ -14,4 +17,4 @@ function toIso(input, options = {}) {
14
17
  export {
15
18
  toIso
16
19
  };
17
- //# sourceMappingURL=chunk-BSV32PSO.js.map
20
+ //# sourceMappingURL=chunk-YO2VXHA5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/toIso.ts"],"sourcesContent":["import { isInstant } from './shared/temporal';\nimport type { Temporal } from '@js-temporal/polyfill';\n\nexport type IsoMode = 'utc' | 'offset';\n\nexport interface ToIsoOptions {\n /**\n * Output mode for time zone designator.\n * - 'utc' (default): UTC time with Z suffix\n * - 'offset': local time with offset suffix\n */\n mode?: IsoMode;\n}\n\n/**\n * Convert a Temporal.Instant to a UTC ISO 8601 string.\n */\nexport function toIso(input: Temporal.Instant): string;\n\n/**\n * Convert a Temporal.ZonedDateTime to an ISO 8601 string.\n *\n * @param input - A Temporal.ZonedDateTime\n * @param options - Output options\n *\n * @example\n * ```typescript\n * const zoned = Temporal.ZonedDateTime.from(\"2025-01-20T15:00:00-05:00[America/New_York]\");\n *\n * toIso(zoned); // \"2025-01-20T20:00:00Z\"\n * toIso(zoned, { mode: 'utc' }); // \"2025-01-20T20:00:00Z\"\n * toIso(zoned, { mode: 'offset' }); // \"2025-01-20T15:00:00-05:00\"\n * ```\n */\nexport function toIso(\n input: Temporal.ZonedDateTime,\n options?: ToIsoOptions\n): string;\n\nexport function toIso(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n options: ToIsoOptions = {}\n): string {\n const { mode = 'utc' } = options;\n\n if (isInstant(input)) {\n return input.toString();\n }\n\n if (mode === 'offset') {\n return input.toString({ timeZoneName: 'never' });\n }\n\n return input.toInstant().toString();\n}\n"],"mappings":";;;;;AAuCO,SAAS,MACd,OACA,UAAwB,CAAC,GACjB;AACR,QAAM,EAAE,OAAO,MAAM,IAAI;AAEzB,MAAI,UAAU,KAAK,GAAG;AACpB,WAAO,MAAM,SAAS;AAAA,EACxB;AAEA,MAAI,SAAS,UAAU;AACrB,WAAO,MAAM,SAAS,EAAE,cAAc,QAAQ,CAAC;AAAA,EACjD;AAEA,SAAO,MAAM,UAAU,EAAE,SAAS;AACpC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-MJSZNWCV.js";
3
+ } from "./chunk-65RGM7EG.js";
4
4
 
5
5
  // src/isSameMillisecond.ts
6
6
  function isSameMillisecond(date1, date2) {
@@ -12,4 +12,4 @@ function isSameMillisecond(date1, date2) {
12
12
  export {
13
13
  isSameMillisecond
14
14
  };
15
- //# sourceMappingURL=chunk-ISHZRFVN.js.map
15
+ //# sourceMappingURL=chunk-ZITFEEZS.js.map