@gobrand/tiempo 2.9.0 → 2.10.0
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.
- package/dist/addDays.js +3 -3
- package/dist/addHours.js +3 -3
- package/dist/addMicroseconds.js +3 -3
- package/dist/addMilliseconds.js +3 -3
- package/dist/addMinutes.js +3 -3
- package/dist/addMonths.js +3 -3
- package/dist/addNanoseconds.js +3 -3
- package/dist/addQuarters.d.ts +29 -0
- package/dist/addQuarters.d.ts.map +1 -0
- package/dist/addQuarters.js +9 -0
- package/dist/addQuarters.js.map +1 -0
- package/dist/addQuarters.test.d.ts +2 -0
- package/dist/addQuarters.test.d.ts.map +1 -0
- package/dist/addSeconds.js +3 -3
- package/dist/addWeeks.js +3 -3
- package/dist/addYears.js +3 -3
- package/dist/{chunk-DGRZ6HO3.js → chunk-2E4KCD3Y.js} +2 -2
- package/dist/{chunk-7XVPK2AV.js → chunk-2EFJSF2R.js} +2 -2
- package/dist/{chunk-I3RXBZP5.js → chunk-3LTTYG6N.js} +2 -2
- package/dist/{chunk-PBT2OZJH.js → chunk-4PGGOVSG.js} +2 -2
- package/dist/{chunk-GVZOCS7O.js → chunk-567DXBLA.js} +3 -3
- package/dist/{chunk-SFXJV5ZT.js → chunk-5CFWMIHL.js} +2 -2
- package/dist/{chunk-DTZPE5PM.js → chunk-6RETOV6A.js} +3 -3
- package/dist/chunk-6UBZ5YB3.js +43 -0
- package/dist/chunk-6UBZ5YB3.js.map +1 -0
- package/dist/{chunk-DHJ353HR.js → chunk-6UMISP3B.js} +2 -2
- package/dist/{chunk-5HVHKQTJ.js → chunk-6YU6BQOZ.js} +2 -2
- package/dist/{chunk-W6RF44CV.js → chunk-7HUJC5M6.js} +4 -4
- package/dist/{chunk-FEUIZJOV.js → chunk-7K5BJ6F7.js} +3 -3
- package/dist/{chunk-4ZRJ3EHQ.js → chunk-A42NID5P.js} +4 -4
- package/dist/{chunk-SZATPYBI.js → chunk-BEGD73DT.js} +3 -3
- package/dist/{chunk-CP4JNCMO.js → chunk-BTXU3OGV.js} +2 -2
- package/dist/{chunk-LLN2SKGE.js → chunk-CCVPCHUO.js} +4 -4
- package/dist/{chunk-HHPXUFZP.js → chunk-CIA46DWB.js} +2 -2
- package/dist/{chunk-L2CNUS43.js → chunk-CSOSM46M.js} +2 -2
- package/dist/{chunk-FIX6LQG5.js → chunk-DBVGH55Z.js} +2 -2
- package/dist/{chunk-QPGTY5DD.js → chunk-DCCHY45G.js} +2 -2
- package/dist/{chunk-NKWGZIOJ.js → chunk-DCFRBZBY.js} +3 -3
- package/dist/{chunk-DJRIH2PX.js → chunk-DHFBKOFZ.js} +2 -2
- package/dist/{chunk-WLW622M7.js → chunk-DMFV2AL7.js} +11 -11
- package/dist/{chunk-ZBEEQUE4.js → chunk-EBVLBLR3.js} +2 -2
- package/dist/{chunk-SWDOKPVX.js → chunk-ELUSLRWQ.js} +2 -2
- package/dist/{chunk-JVB5IARQ.js → chunk-EMZFQEWM.js} +2 -2
- package/dist/{chunk-ESTLMF2X.js → chunk-EU3SYJHM.js} +2 -2
- package/dist/{chunk-BIH6JETG.js → chunk-EVEMK2K2.js} +2 -2
- package/dist/{chunk-KONRPZXK.js → chunk-FCJO72WG.js} +2 -2
- package/dist/chunk-FYZNOTX3.js +18 -0
- package/dist/chunk-FYZNOTX3.js.map +1 -0
- package/dist/{chunk-G4COVQ5S.js → chunk-G2U5WGRP.js} +2 -2
- package/dist/{chunk-PEGMMWZU.js → chunk-H5BHFVEN.js} +2 -2
- package/dist/{chunk-KKMM6HYC.js → chunk-IAXVREU5.js} +2 -2
- package/dist/{chunk-XRZUPSUB.js → chunk-IONQ6TOR.js} +2 -2
- package/dist/{chunk-DN3V4IZC.js → chunk-JBM7DESQ.js} +2 -2
- package/dist/{chunk-QRLTVRYC.js → chunk-JK4WDDWU.js} +3 -3
- package/dist/{chunk-OZYC3TAR.js → chunk-JQFD563S.js} +2 -2
- package/dist/{chunk-WNPPRDN3.js → chunk-KGO3G2QB.js} +3 -3
- package/dist/{chunk-ADAN2I34.js → chunk-KN45BU3W.js} +4 -4
- package/dist/{chunk-LYPSZYIG.js → chunk-L5AMAEWX.js} +2 -2
- package/dist/{chunk-RTANLM3L.js → chunk-LAITZAIG.js} +2 -2
- package/dist/{chunk-AAORAX74.js → chunk-LODULPI3.js} +2 -2
- package/dist/{chunk-C5HDCIRV.js → chunk-LSKER4FN.js} +2 -2
- package/dist/{chunk-SY2S6MMZ.js → chunk-M4KDJ4I4.js} +2 -2
- package/dist/{chunk-T6ONGPRF.js → chunk-M7Y67IAB.js} +2 -2
- package/dist/{chunk-ZKGR3F4F.js → chunk-MDXN3WMH.js} +2 -2
- package/dist/{chunk-RSY3BI3P.js → chunk-MENMDB6M.js} +2 -2
- package/dist/{chunk-TIEAKS3O.js → chunk-MM2HIW7M.js} +3 -3
- package/dist/{chunk-JXBC2VU2.js → chunk-MNV2H4N6.js} +2 -2
- package/dist/{chunk-SHDXBQ7E.js → chunk-NEHYVVTH.js} +2 -2
- package/dist/chunk-NOV3D7OM.js +17 -0
- package/dist/chunk-NOV3D7OM.js.map +1 -0
- package/dist/{chunk-F6EWMA4K.js → chunk-NTMT5XGC.js} +2 -2
- package/dist/{chunk-QHQACJEU.js → chunk-NX7MXLFS.js} +2 -2
- package/dist/{chunk-VVV5BNLP.js → chunk-OFIPZPEA.js} +2 -2
- package/dist/{chunk-7LZPFGGV.js → chunk-OKXCGA4Y.js} +2 -2
- package/dist/{chunk-GEMTHX5S.js → chunk-OLLX6YCN.js} +2 -2
- package/dist/{chunk-PWPACA4G.js → chunk-OQNFKOPA.js} +2 -2
- package/dist/{chunk-NT7VDFLO.js → chunk-PURKYS5T.js} +2 -2
- package/dist/{chunk-46EP6MO2.js → chunk-PVOGE6ME.js} +4 -4
- package/dist/{chunk-SQJTTKEI.js → chunk-PWIEPZVO.js} +2 -2
- package/dist/{chunk-LGLV7RIC.js → chunk-PX2I4GCF.js} +2 -2
- package/dist/{chunk-7NQ76UHP.js → chunk-PYALKKWZ.js} +4 -4
- package/dist/{chunk-VOZTLX5F.js → chunk-R7ZCA6AQ.js} +4 -2
- package/dist/chunk-R7ZCA6AQ.js.map +1 -0
- package/dist/{chunk-QVXCG625.js → chunk-RKEZOXD3.js} +2 -2
- package/dist/{chunk-U7ZWIAB3.js → chunk-RL2NW7HP.js} +2 -2
- package/dist/{chunk-3QC5YINX.js → chunk-RLVCSGRU.js} +2 -2
- package/dist/{chunk-MHXSUAPE.js → chunk-RXTGHEHQ.js} +2 -2
- package/dist/{chunk-IPWSPA4H.js → chunk-SCD2JNY3.js} +2 -2
- package/dist/{chunk-OKPTY2ZQ.js → chunk-SDJJP4HW.js} +4 -4
- package/dist/{chunk-TDZ3XUH7.js → chunk-SDW4W3XE.js} +2 -2
- package/dist/chunk-SPK7C7RP.js +25 -0
- package/dist/chunk-SPK7C7RP.js.map +1 -0
- package/dist/{chunk-OPACRBGV.js → chunk-T5WSO6US.js} +2 -2
- package/dist/{chunk-GS3J5YVW.js → chunk-TGINH5JV.js} +2 -2
- package/dist/{chunk-SRXD4AGD.js → chunk-TQUKIG26.js} +2 -2
- package/dist/{chunk-SDCVBRJP.js → chunk-URC6AG2N.js} +2 -2
- package/dist/{chunk-2J434XZJ.js → chunk-UTN7ZKL4.js} +3 -3
- package/dist/{chunk-XONITURH.js → chunk-UXMNCRG7.js} +2 -2
- package/dist/{chunk-RUJC6FOA.js → chunk-VC7RTDJP.js} +2 -2
- package/dist/{chunk-R7MM4BDS.js → chunk-VCWP3CZE.js} +4 -4
- package/dist/{chunk-3WWRI3NR.js → chunk-VKXN4FQD.js} +2 -2
- package/dist/{chunk-OGNREZPA.js → chunk-VQPIPLHX.js} +2 -2
- package/dist/{chunk-QGXK664C.js → chunk-VS2VCQLP.js} +2 -2
- package/dist/chunk-VUKOSQWW.js +14 -0
- package/dist/chunk-VUKOSQWW.js.map +1 -0
- package/dist/chunk-W5YDBBNF.js +13 -0
- package/dist/chunk-W5YDBBNF.js.map +1 -0
- package/dist/{chunk-DOGZ2WBH.js → chunk-WGLZHBJG.js} +2 -2
- package/dist/{chunk-76RCTVBW.js → chunk-WTLAKRCT.js} +2 -2
- package/dist/{chunk-ERCE3YCO.js → chunk-X3ARINEH.js} +2 -2
- package/dist/chunk-XMW72PNW.js +21 -0
- package/dist/chunk-XMW72PNW.js.map +1 -0
- package/dist/chunk-XS2HUADA.js +13 -0
- package/dist/chunk-XS2HUADA.js.map +1 -0
- package/dist/{chunk-ZSRCVDZ2.js → chunk-XWBOD6MD.js} +2 -2
- package/dist/{chunk-ZFXBHDFB.js → chunk-YOSCEJ36.js} +2 -2
- package/dist/chunk-ZEL6JBBH.js +14 -0
- package/dist/chunk-ZEL6JBBH.js.map +1 -0
- package/dist/{chunk-BOGN7JC3.js → chunk-ZG4ROOWI.js} +2 -2
- package/dist/{chunk-Z2LOTP6T.js → chunk-ZGWLIISB.js} +3 -3
- package/dist/{chunk-Y4HT4LCB.js → chunk-ZOHYNJUD.js} +4 -4
- package/dist/{chunk-WJOGQ6IB.js → chunk-ZYU3P74L.js} +2 -2
- package/dist/differenceInDays.js +3 -3
- package/dist/differenceInHours.js +3 -3
- package/dist/differenceInMicroseconds.js +3 -3
- package/dist/differenceInMilliseconds.js +3 -3
- package/dist/differenceInMinutes.js +3 -3
- package/dist/differenceInMonths.js +3 -3
- package/dist/differenceInNanoseconds.js +3 -3
- package/dist/differenceInQuarters.d.ts +37 -0
- package/dist/differenceInQuarters.d.ts.map +1 -0
- package/dist/differenceInQuarters.js +10 -0
- package/dist/differenceInQuarters.js.map +1 -0
- package/dist/differenceInQuarters.test.d.ts +2 -0
- package/dist/differenceInQuarters.test.d.ts.map +1 -0
- package/dist/differenceInSeconds.js +3 -3
- package/dist/differenceInWeeks.js +3 -3
- package/dist/differenceInYears.js +3 -3
- package/dist/eachDayOfInterval.js +3 -3
- package/dist/eachHourOfInterval.js +3 -3
- package/dist/eachMinuteOfInterval.js +3 -3
- package/dist/eachMonthOfInterval.js +3 -3
- package/dist/eachQuarterOfInterval.d.ts +47 -0
- package/dist/eachQuarterOfInterval.d.ts.map +1 -0
- package/dist/eachQuarterOfInterval.js +10 -0
- package/dist/eachQuarterOfInterval.js.map +1 -0
- package/dist/eachQuarterOfInterval.test.d.ts +2 -0
- package/dist/eachQuarterOfInterval.test.d.ts.map +1 -0
- package/dist/eachWeekOfInterval.js +3 -3
- package/dist/eachYearOfInterval.js +3 -3
- package/dist/endOfDay.js +5 -5
- package/dist/endOfMonth.js +5 -5
- package/dist/endOfQuarter.d.ts +38 -0
- package/dist/endOfQuarter.d.ts.map +1 -0
- package/dist/endOfQuarter.js +13 -0
- package/dist/endOfQuarter.js.map +1 -0
- package/dist/endOfQuarter.test.d.ts +2 -0
- package/dist/endOfQuarter.test.d.ts.map +1 -0
- package/dist/endOfWeek.js +4 -4
- package/dist/endOfYear.js +5 -5
- package/dist/format.js +3 -3
- package/dist/formatPlainDate.js +1 -1
- package/dist/getQuarter.d.ts +38 -0
- package/dist/getQuarter.d.ts.map +1 -0
- package/dist/getQuarter.js +12 -0
- package/dist/getQuarter.js.map +1 -0
- package/dist/getQuarter.test.d.ts +2 -0
- package/dist/getQuarter.test.d.ts.map +1 -0
- package/dist/index.d.ts +92 -84
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +149 -116
- package/dist/intlFormatDistance.js +10 -10
- package/dist/isAfter.js +4 -4
- package/dist/isBefore.js +4 -4
- package/dist/isFuture.js +5 -5
- package/dist/isPast.js +5 -5
- package/dist/isPlainDateAfter.js +2 -2
- package/dist/isPlainDateBefore.js +2 -2
- package/dist/isPlainDateEqual.js +2 -2
- package/dist/isPlainTimeAfter.js +2 -2
- package/dist/isPlainTimeBefore.js +2 -2
- package/dist/isPlainTimeEqual.js +2 -2
- package/dist/isSameDay.js +3 -3
- package/dist/isSameHour.js +3 -3
- package/dist/isSameMicrosecond.js +3 -3
- package/dist/isSameMillisecond.js +3 -3
- package/dist/isSameMinute.js +3 -3
- package/dist/isSameMonth.js +3 -3
- package/dist/isSameNanosecond.js +3 -3
- package/dist/isSameQuarter.d.ts +43 -0
- package/dist/isSameQuarter.d.ts.map +1 -0
- package/dist/isSameQuarter.js +10 -0
- package/dist/isSameQuarter.js.map +1 -0
- package/dist/isSameQuarter.test.d.ts +2 -0
- package/dist/isSameQuarter.test.d.ts.map +1 -0
- package/dist/isSameSecond.js +3 -3
- package/dist/isSameWeek.js +3 -3
- package/dist/isSameYear.js +3 -3
- package/dist/isWithinInterval.js +5 -5
- package/dist/now.js +2 -2
- package/dist/roundToNearestHour.js +3 -3
- package/dist/roundToNearestMinute.js +3 -3
- package/dist/roundToNearestSecond.js +3 -3
- package/dist/shared/differenceInMilliseconds.js +1 -1
- package/dist/shared/isAfter.js +2 -2
- package/dist/shared/isBefore.js +2 -2
- package/dist/shared/normalizeTemporalInput.js +2 -2
- package/dist/shared/normalizeWithPlainDate.js +4 -4
- package/dist/shared/nowZoned.js +3 -3
- package/dist/shared/plainDateToZonedDateTime.js +2 -2
- package/dist/shared/quarter.d.ts +12 -0
- package/dist/shared/quarter.d.ts.map +1 -0
- package/dist/shared/quarter.js +9 -0
- package/dist/shared/quarter.js.map +1 -0
- package/dist/shared/temporal.d.ts +17 -31
- package/dist/shared/temporal.d.ts.map +1 -1
- package/dist/shared/temporal.js +1 -1
- package/dist/simpleFormat.js +2 -2
- package/dist/startOfDay.js +5 -5
- package/dist/startOfMonth.js +5 -5
- package/dist/startOfQuarter.d.ts +38 -0
- package/dist/startOfQuarter.d.ts.map +1 -0
- package/dist/startOfQuarter.js +12 -0
- package/dist/startOfQuarter.js.map +1 -0
- package/dist/startOfQuarter.test.d.ts +2 -0
- package/dist/startOfQuarter.test.d.ts.map +1 -0
- package/dist/startOfWeek.js +4 -4
- package/dist/startOfYear.js +5 -5
- package/dist/subDays.js +4 -4
- package/dist/subHours.js +4 -4
- package/dist/subMicroseconds.js +4 -4
- package/dist/subMilliseconds.js +4 -4
- package/dist/subMinutes.js +4 -4
- package/dist/subMonths.js +4 -4
- package/dist/subNanoseconds.js +4 -4
- package/dist/subQuarters.d.ts +20 -0
- package/dist/subQuarters.d.ts.map +1 -0
- package/dist/subQuarters.js +10 -0
- package/dist/subQuarters.js.map +1 -0
- package/dist/subQuarters.test.d.ts +2 -0
- package/dist/subQuarters.test.d.ts.map +1 -0
- package/dist/subSeconds.js +4 -4
- package/dist/subWeeks.js +4 -4
- package/dist/subYears.js +4 -4
- package/dist/toDate.js +2 -2
- package/dist/toIso.js +2 -2
- package/dist/toIso9075.js +2 -2
- package/dist/toPlainDate.js +2 -2
- package/dist/toPlainTime.js +2 -2
- package/dist/toUtc.js +2 -2
- package/dist/toZonedTime.js +2 -2
- package/dist/today.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-VOZTLX5F.js.map +0 -1
- /package/dist/{chunk-DGRZ6HO3.js.map → chunk-2E4KCD3Y.js.map} +0 -0
- /package/dist/{chunk-7XVPK2AV.js.map → chunk-2EFJSF2R.js.map} +0 -0
- /package/dist/{chunk-I3RXBZP5.js.map → chunk-3LTTYG6N.js.map} +0 -0
- /package/dist/{chunk-PBT2OZJH.js.map → chunk-4PGGOVSG.js.map} +0 -0
- /package/dist/{chunk-GVZOCS7O.js.map → chunk-567DXBLA.js.map} +0 -0
- /package/dist/{chunk-SFXJV5ZT.js.map → chunk-5CFWMIHL.js.map} +0 -0
- /package/dist/{chunk-DTZPE5PM.js.map → chunk-6RETOV6A.js.map} +0 -0
- /package/dist/{chunk-DHJ353HR.js.map → chunk-6UMISP3B.js.map} +0 -0
- /package/dist/{chunk-5HVHKQTJ.js.map → chunk-6YU6BQOZ.js.map} +0 -0
- /package/dist/{chunk-W6RF44CV.js.map → chunk-7HUJC5M6.js.map} +0 -0
- /package/dist/{chunk-FEUIZJOV.js.map → chunk-7K5BJ6F7.js.map} +0 -0
- /package/dist/{chunk-4ZRJ3EHQ.js.map → chunk-A42NID5P.js.map} +0 -0
- /package/dist/{chunk-SZATPYBI.js.map → chunk-BEGD73DT.js.map} +0 -0
- /package/dist/{chunk-CP4JNCMO.js.map → chunk-BTXU3OGV.js.map} +0 -0
- /package/dist/{chunk-LLN2SKGE.js.map → chunk-CCVPCHUO.js.map} +0 -0
- /package/dist/{chunk-HHPXUFZP.js.map → chunk-CIA46DWB.js.map} +0 -0
- /package/dist/{chunk-L2CNUS43.js.map → chunk-CSOSM46M.js.map} +0 -0
- /package/dist/{chunk-FIX6LQG5.js.map → chunk-DBVGH55Z.js.map} +0 -0
- /package/dist/{chunk-QPGTY5DD.js.map → chunk-DCCHY45G.js.map} +0 -0
- /package/dist/{chunk-NKWGZIOJ.js.map → chunk-DCFRBZBY.js.map} +0 -0
- /package/dist/{chunk-DJRIH2PX.js.map → chunk-DHFBKOFZ.js.map} +0 -0
- /package/dist/{chunk-WLW622M7.js.map → chunk-DMFV2AL7.js.map} +0 -0
- /package/dist/{chunk-ZBEEQUE4.js.map → chunk-EBVLBLR3.js.map} +0 -0
- /package/dist/{chunk-SWDOKPVX.js.map → chunk-ELUSLRWQ.js.map} +0 -0
- /package/dist/{chunk-JVB5IARQ.js.map → chunk-EMZFQEWM.js.map} +0 -0
- /package/dist/{chunk-ESTLMF2X.js.map → chunk-EU3SYJHM.js.map} +0 -0
- /package/dist/{chunk-BIH6JETG.js.map → chunk-EVEMK2K2.js.map} +0 -0
- /package/dist/{chunk-KONRPZXK.js.map → chunk-FCJO72WG.js.map} +0 -0
- /package/dist/{chunk-G4COVQ5S.js.map → chunk-G2U5WGRP.js.map} +0 -0
- /package/dist/{chunk-PEGMMWZU.js.map → chunk-H5BHFVEN.js.map} +0 -0
- /package/dist/{chunk-KKMM6HYC.js.map → chunk-IAXVREU5.js.map} +0 -0
- /package/dist/{chunk-XRZUPSUB.js.map → chunk-IONQ6TOR.js.map} +0 -0
- /package/dist/{chunk-DN3V4IZC.js.map → chunk-JBM7DESQ.js.map} +0 -0
- /package/dist/{chunk-QRLTVRYC.js.map → chunk-JK4WDDWU.js.map} +0 -0
- /package/dist/{chunk-OZYC3TAR.js.map → chunk-JQFD563S.js.map} +0 -0
- /package/dist/{chunk-WNPPRDN3.js.map → chunk-KGO3G2QB.js.map} +0 -0
- /package/dist/{chunk-ADAN2I34.js.map → chunk-KN45BU3W.js.map} +0 -0
- /package/dist/{chunk-LYPSZYIG.js.map → chunk-L5AMAEWX.js.map} +0 -0
- /package/dist/{chunk-RTANLM3L.js.map → chunk-LAITZAIG.js.map} +0 -0
- /package/dist/{chunk-AAORAX74.js.map → chunk-LODULPI3.js.map} +0 -0
- /package/dist/{chunk-C5HDCIRV.js.map → chunk-LSKER4FN.js.map} +0 -0
- /package/dist/{chunk-SY2S6MMZ.js.map → chunk-M4KDJ4I4.js.map} +0 -0
- /package/dist/{chunk-T6ONGPRF.js.map → chunk-M7Y67IAB.js.map} +0 -0
- /package/dist/{chunk-ZKGR3F4F.js.map → chunk-MDXN3WMH.js.map} +0 -0
- /package/dist/{chunk-RSY3BI3P.js.map → chunk-MENMDB6M.js.map} +0 -0
- /package/dist/{chunk-TIEAKS3O.js.map → chunk-MM2HIW7M.js.map} +0 -0
- /package/dist/{chunk-JXBC2VU2.js.map → chunk-MNV2H4N6.js.map} +0 -0
- /package/dist/{chunk-SHDXBQ7E.js.map → chunk-NEHYVVTH.js.map} +0 -0
- /package/dist/{chunk-F6EWMA4K.js.map → chunk-NTMT5XGC.js.map} +0 -0
- /package/dist/{chunk-QHQACJEU.js.map → chunk-NX7MXLFS.js.map} +0 -0
- /package/dist/{chunk-VVV5BNLP.js.map → chunk-OFIPZPEA.js.map} +0 -0
- /package/dist/{chunk-7LZPFGGV.js.map → chunk-OKXCGA4Y.js.map} +0 -0
- /package/dist/{chunk-GEMTHX5S.js.map → chunk-OLLX6YCN.js.map} +0 -0
- /package/dist/{chunk-PWPACA4G.js.map → chunk-OQNFKOPA.js.map} +0 -0
- /package/dist/{chunk-NT7VDFLO.js.map → chunk-PURKYS5T.js.map} +0 -0
- /package/dist/{chunk-46EP6MO2.js.map → chunk-PVOGE6ME.js.map} +0 -0
- /package/dist/{chunk-SQJTTKEI.js.map → chunk-PWIEPZVO.js.map} +0 -0
- /package/dist/{chunk-LGLV7RIC.js.map → chunk-PX2I4GCF.js.map} +0 -0
- /package/dist/{chunk-7NQ76UHP.js.map → chunk-PYALKKWZ.js.map} +0 -0
- /package/dist/{chunk-QVXCG625.js.map → chunk-RKEZOXD3.js.map} +0 -0
- /package/dist/{chunk-U7ZWIAB3.js.map → chunk-RL2NW7HP.js.map} +0 -0
- /package/dist/{chunk-3QC5YINX.js.map → chunk-RLVCSGRU.js.map} +0 -0
- /package/dist/{chunk-MHXSUAPE.js.map → chunk-RXTGHEHQ.js.map} +0 -0
- /package/dist/{chunk-IPWSPA4H.js.map → chunk-SCD2JNY3.js.map} +0 -0
- /package/dist/{chunk-OKPTY2ZQ.js.map → chunk-SDJJP4HW.js.map} +0 -0
- /package/dist/{chunk-TDZ3XUH7.js.map → chunk-SDW4W3XE.js.map} +0 -0
- /package/dist/{chunk-OPACRBGV.js.map → chunk-T5WSO6US.js.map} +0 -0
- /package/dist/{chunk-GS3J5YVW.js.map → chunk-TGINH5JV.js.map} +0 -0
- /package/dist/{chunk-SRXD4AGD.js.map → chunk-TQUKIG26.js.map} +0 -0
- /package/dist/{chunk-SDCVBRJP.js.map → chunk-URC6AG2N.js.map} +0 -0
- /package/dist/{chunk-2J434XZJ.js.map → chunk-UTN7ZKL4.js.map} +0 -0
- /package/dist/{chunk-XONITURH.js.map → chunk-UXMNCRG7.js.map} +0 -0
- /package/dist/{chunk-RUJC6FOA.js.map → chunk-VC7RTDJP.js.map} +0 -0
- /package/dist/{chunk-R7MM4BDS.js.map → chunk-VCWP3CZE.js.map} +0 -0
- /package/dist/{chunk-3WWRI3NR.js.map → chunk-VKXN4FQD.js.map} +0 -0
- /package/dist/{chunk-OGNREZPA.js.map → chunk-VQPIPLHX.js.map} +0 -0
- /package/dist/{chunk-QGXK664C.js.map → chunk-VS2VCQLP.js.map} +0 -0
- /package/dist/{chunk-DOGZ2WBH.js.map → chunk-WGLZHBJG.js.map} +0 -0
- /package/dist/{chunk-76RCTVBW.js.map → chunk-WTLAKRCT.js.map} +0 -0
- /package/dist/{chunk-ERCE3YCO.js.map → chunk-X3ARINEH.js.map} +0 -0
- /package/dist/{chunk-ZSRCVDZ2.js.map → chunk-XWBOD6MD.js.map} +0 -0
- /package/dist/{chunk-ZFXBHDFB.js.map → chunk-YOSCEJ36.js.map} +0 -0
- /package/dist/{chunk-BOGN7JC3.js.map → chunk-ZG4ROOWI.js.map} +0 -0
- /package/dist/{chunk-Z2LOTP6T.js.map → chunk-ZGWLIISB.js.map} +0 -0
- /package/dist/{chunk-Y4HT4LCB.js.map → chunk-ZOHYNJUD.js.map} +0 -0
- /package/dist/{chunk-WJOGQ6IB.js.map → chunk-ZYU3P74L.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/roundToNearestSecond.ts
|
|
6
6
|
var MODE_TO_ROUNDING_MODE = {
|
|
@@ -22,4 +22,4 @@ function roundToNearestSecond(input, options) {
|
|
|
22
22
|
export {
|
|
23
23
|
roundToNearestSecond
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-RKEZOXD3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isInstant
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
4
4
|
|
|
5
5
|
// src/toIso9075.ts
|
|
6
6
|
function toIso9075(input, options = {}) {
|
|
@@ -30,4 +30,4 @@ function pad(n) {
|
|
|
30
30
|
export {
|
|
31
31
|
toIso9075
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-RL2NW7HP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/isSameDay.ts
|
|
6
6
|
function isSameDay(date1, date2) {
|
|
@@ -12,4 +12,4 @@ function isSameDay(date1, date2) {
|
|
|
12
12
|
export {
|
|
13
13
|
isSameDay
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-RLVCSGRU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Temporal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
4
4
|
|
|
5
5
|
// src/toUtc.ts
|
|
6
6
|
function toUtc(input) {
|
|
@@ -19,4 +19,4 @@ function toUtc(input) {
|
|
|
19
19
|
export {
|
|
20
20
|
toUtc
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-RXTGHEHQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/isSameMonth.ts
|
|
6
6
|
function isSameMonth(date1, date2) {
|
|
@@ -12,4 +12,4 @@ function isSameMonth(date1, date2) {
|
|
|
12
12
|
export {
|
|
13
13
|
isSameMonth
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-SCD2JNY3.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plainDateToZonedDateTime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5AMAEWX.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeTemporalInput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NTMT5XGC.js";
|
|
7
7
|
import {
|
|
8
8
|
isPlainDate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
10
10
|
|
|
11
11
|
// src/startOfWeek.ts
|
|
12
12
|
function startOfWeek(input, timezone) {
|
|
@@ -20,4 +20,4 @@ function startOfWeek(input, timezone) {
|
|
|
20
20
|
export {
|
|
21
21
|
startOfWeek
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-SDJJP4HW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/isSameMicrosecond.ts
|
|
6
6
|
function isSameMicrosecond(date1, date2) {
|
|
@@ -12,4 +12,4 @@ function isSameMicrosecond(date1, date2) {
|
|
|
12
12
|
export {
|
|
13
13
|
isSameMicrosecond
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-SDW4W3XE.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
quarterStartMonth
|
|
3
|
+
} from "./chunk-XS2HUADA.js";
|
|
4
|
+
import {
|
|
5
|
+
getEndOfDay
|
|
6
|
+
} from "./chunk-AVGNRINZ.js";
|
|
7
|
+
import {
|
|
8
|
+
normalizeWithPlainDate
|
|
9
|
+
} from "./chunk-ZOHYNJUD.js";
|
|
10
|
+
|
|
11
|
+
// src/endOfQuarter.ts
|
|
12
|
+
function endOfQuarter(input, timezone) {
|
|
13
|
+
const zonedDateTime = normalizeWithPlainDate(input, timezone);
|
|
14
|
+
const endMonth = zonedDateTime.with({
|
|
15
|
+
month: quarterStartMonth(zonedDateTime.month) + 2,
|
|
16
|
+
day: 1
|
|
17
|
+
});
|
|
18
|
+
const lastDay = endMonth.with({ day: endMonth.daysInMonth });
|
|
19
|
+
return getEndOfDay(lastDay);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
endOfQuarter
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-SPK7C7RP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/endOfQuarter.ts"],"sourcesContent":["import { Temporal } from \"./shared/temporal\";\nimport type { Timezone } from \"./types\";\nimport { getEndOfDay } from \"./shared/endOfDay\";\nimport { normalizeWithPlainDate } from \"./shared/normalizeWithPlainDate\";\nimport { quarterStartMonth } from \"./shared/quarter\";\n\n/**\n * Returns a ZonedDateTime representing the last moment of the quarter\n * (last day of the quarter's ending month at 23:59:59.999999999).\n *\n * Quarters: Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @returns ZonedDateTime at the last day of the quarter at 23:59:59.999999999\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-05-15T12:00:00Z');\n * const end = endOfQuarter(instant);\n * // 2025-06-30T23:59:59.999999999Z[UTC]\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (uses its timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-02-15T15:30:00-05:00[America/New_York]');\n * const end = endOfQuarter(zoned);\n * // 2025-03-31T23:59:59.999999999-04:00[America/New_York]\n * ```\n *\n * @example\n * ```ts\n * // From PlainDate (requires timezone)\n * const date = Temporal.PlainDate.from('2025-11-15');\n * const end = endOfQuarter(date, 'America/New_York');\n * // 2025-12-31T23:59:59.999999999-05:00[America/New_York]\n * ```\n */\nexport function endOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n): Temporal.ZonedDateTime;\nexport function endOfQuarter(input: Temporal.PlainDate, timezone: Timezone): Temporal.ZonedDateTime;\nexport function endOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone,\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeWithPlainDate(input, timezone!);\n const endMonth = zonedDateTime.with({\n month: quarterStartMonth(zonedDateTime.month) + 2,\n day: 1,\n });\n const lastDay = endMonth.with({ day: endMonth.daysInMonth });\n return getEndOfDay(lastDay);\n}\n"],"mappings":";;;;;;;;;;;AA2CO,SAAS,aACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,OAAO,QAAS;AAC7D,QAAM,WAAW,cAAc,KAAK;AAAA,IAClC,OAAO,kBAAkB,cAAc,KAAK,IAAI;AAAA,IAChD,KAAK;AAAA,EACP,CAAC;AACD,QAAM,UAAU,SAAS,KAAK,EAAE,KAAK,SAAS,YAAY,CAAC;AAC3D,SAAO,YAAY,OAAO;AAC5B;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.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-
|
|
15
|
+
//# sourceMappingURL=chunk-T5WSO6US.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeWithPlainDate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZOHYNJUD.js";
|
|
4
4
|
|
|
5
5
|
// src/startOfYear.ts
|
|
6
6
|
function startOfYear(input, timezone) {
|
|
@@ -12,4 +12,4 @@ function startOfYear(input, timezone) {
|
|
|
12
12
|
export {
|
|
13
13
|
startOfYear
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-TGINH5JV.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Temporal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
4
4
|
|
|
5
5
|
// src/isPlainTimeAfter.ts
|
|
6
6
|
function isPlainTimeAfter(time1, time2) {
|
|
@@ -10,4 +10,4 @@ function isPlainTimeAfter(time1, time2) {
|
|
|
10
10
|
export {
|
|
11
11
|
isPlainTimeAfter
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-TQUKIG26.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addMicroseconds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IAXVREU5.js";
|
|
4
4
|
|
|
5
5
|
// src/subMicroseconds.ts
|
|
6
6
|
function subMicroseconds(input, microseconds) {
|
|
@@ -10,4 +10,4 @@ function subMicroseconds(input, microseconds) {
|
|
|
10
10
|
export {
|
|
11
11
|
subMicroseconds
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-URC6AG2N.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
import {
|
|
5
5
|
Temporal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
7
7
|
|
|
8
8
|
// src/eachWeekOfInterval.ts
|
|
9
9
|
function eachWeekOfInterval(interval) {
|
|
@@ -27,4 +27,4 @@ function eachWeekOfInterval(interval) {
|
|
|
27
27
|
export {
|
|
28
28
|
eachWeekOfInterval
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-UTN7ZKL4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Temporal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
4
4
|
|
|
5
5
|
// src/isPlainDateBefore.ts
|
|
6
6
|
function isPlainDateBefore(date1, date2) {
|
|
@@ -10,4 +10,4 @@ function isPlainDateBefore(date1, date2) {
|
|
|
10
10
|
export {
|
|
11
11
|
isPlainDateBefore
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-UXMNCRG7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/differenceInNanoseconds.ts
|
|
6
6
|
function differenceInNanoseconds(laterDate, earlierDate) {
|
|
@@ -12,4 +12,4 @@ function differenceInNanoseconds(laterDate, earlierDate) {
|
|
|
12
12
|
export {
|
|
13
13
|
differenceInNanoseconds
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-VC7RTDJP.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeWithPlainDate
|
|
3
|
-
} from "./chunk-Y4HT4LCB.js";
|
|
4
1
|
import {
|
|
5
2
|
getEndOfDay
|
|
6
3
|
} from "./chunk-AVGNRINZ.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeWithPlainDate
|
|
6
|
+
} from "./chunk-ZOHYNJUD.js";
|
|
7
7
|
|
|
8
8
|
// src/endOfMonth.ts
|
|
9
9
|
function endOfMonth(input, timezone) {
|
|
@@ -15,4 +15,4 @@ function endOfMonth(input, timezone) {
|
|
|
15
15
|
export {
|
|
16
16
|
endOfMonth
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-VCWP3CZE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeWithPlainDate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZOHYNJUD.js";
|
|
4
4
|
|
|
5
5
|
// src/startOfDay.ts
|
|
6
6
|
function startOfDay(input, timezone) {
|
|
@@ -11,4 +11,4 @@ function startOfDay(input, timezone) {
|
|
|
11
11
|
export {
|
|
12
12
|
startOfDay
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-VKXN4FQD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/addMonths.ts
|
|
6
6
|
function addMonths(input, months) {
|
|
@@ -11,4 +11,4 @@ function addMonths(input, months) {
|
|
|
11
11
|
export {
|
|
12
12
|
addMonths
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-VQPIPLHX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addMilliseconds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FCJO72WG.js";
|
|
4
4
|
|
|
5
5
|
// src/subMilliseconds.ts
|
|
6
6
|
function subMilliseconds(input, milliseconds) {
|
|
@@ -10,4 +10,4 @@ function subMilliseconds(input, milliseconds) {
|
|
|
10
10
|
export {
|
|
11
11
|
subMilliseconds
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-VS2VCQLP.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
differenceInMonths
|
|
3
|
+
} from "./chunk-CIA46DWB.js";
|
|
4
|
+
|
|
5
|
+
// src/differenceInQuarters.ts
|
|
6
|
+
function differenceInQuarters(laterDate, earlierDate, options) {
|
|
7
|
+
const quarters = differenceInMonths(laterDate, earlierDate, { fractional: true }) / 3;
|
|
8
|
+
return options?.fractional ? quarters : Math.trunc(quarters);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
differenceInQuarters
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=chunk-VUKOSQWW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/differenceInQuarters.ts"],"sourcesContent":["import type { Temporal } from \"@js-temporal/polyfill\";\nimport { differenceInMonths } from \"./differenceInMonths\";\nimport type { DifferenceOptions } from \"./shared/differenceOptions\";\n\n/**\n * Returns the number of quarters (3-month blocks) 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 * months with different numbers of days (28, 29, 30, or 31).\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 quarters 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-07-20T12:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:00:00Z');\n *\n * differenceInQuarters(later, earlier); // 2\n * ```\n *\n * @example\n * ```ts\n * // Pass { fractional: true } for partial-unit precision\n * const later = Temporal.Instant.from('2025-03-20T12:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:00:00Z');\n *\n * differenceInQuarters(later, earlier); // 0\n * differenceInQuarters(later, earlier, { fractional: true }); // ~0.67\n * ```\n */\nexport function differenceInQuarters(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime,\n options?: DifferenceOptions,\n): number {\n // A quarter is three months, so reuse the month difference and divide by 3.\n const quarters = differenceInMonths(laterDate, earlierDate, { fractional: true }) / 3;\n return options?.fractional ? quarters : Math.trunc(quarters);\n}\n"],"mappings":";;;;;AAqCO,SAAS,qBACd,WACA,aACA,SACQ;AAER,QAAM,WAAW,mBAAmB,WAAW,aAAa,EAAE,YAAY,KAAK,CAAC,IAAI;AACpF,SAAO,SAAS,aAAa,WAAW,KAAK,MAAM,QAAQ;AAC7D;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/subQuarters.ts"],"sourcesContent":["import type { Temporal } from \"@js-temporal/polyfill\";\nimport { addQuarters } from \"./addQuarters\";\n\n/**\n * Subtracts the specified number of quarters (3-month blocks) from a datetime.\n *\n * This is a convenience wrapper around addQuarters with negated value.\n * Properly handles month-end dates and calendar edge cases through Temporal API.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @param quarters - Number of quarters to subtract\n * @returns ZonedDateTime with quarters subtracted, in the same timezone as input\n *\n * @example\n * ```ts\n * const instant = Temporal.Instant.from('2025-07-20T12:00:00Z');\n * const result = subQuarters(instant, 2);\n * // 2025-01-20T12:00:00Z[UTC] (6 months earlier)\n * ```\n */\nexport function subQuarters(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n quarters: number,\n): Temporal.ZonedDateTime {\n return addQuarters(input, -quarters);\n}\n"],"mappings":";;;;;AAoBO,SAAS,YACd,OACA,UACwB;AACxB,SAAO,YAAY,OAAO,CAAC,QAAQ;AACrC;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/addNanoseconds.ts
|
|
6
6
|
function addNanoseconds(input, nanoseconds) {
|
|
@@ -11,4 +11,4 @@ function addNanoseconds(input, nanoseconds) {
|
|
|
11
11
|
export {
|
|
12
12
|
addNanoseconds
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-WGLZHBJG.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-VXOQ7IG5.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeTemporalInput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NTMT5XGC.js";
|
|
7
7
|
|
|
8
8
|
// src/differenceInMilliseconds.ts
|
|
9
9
|
function differenceInMilliseconds2(laterDate, earlierDate) {
|
|
@@ -15,4 +15,4 @@ function differenceInMilliseconds2(laterDate, earlierDate) {
|
|
|
15
15
|
export {
|
|
16
16
|
differenceInMilliseconds2 as differenceInMilliseconds
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-WTLAKRCT.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-VXOQ7IG5.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeTemporalInput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NTMT5XGC.js";
|
|
7
7
|
|
|
8
8
|
// src/differenceInHours.ts
|
|
9
9
|
function differenceInHours(laterDate, earlierDate, options) {
|
|
@@ -16,4 +16,4 @@ function differenceInHours(laterDate, earlierDate, options) {
|
|
|
16
16
|
export {
|
|
17
17
|
differenceInHours
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-X3ARINEH.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
quarterStartMonth
|
|
3
|
+
} from "./chunk-XS2HUADA.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeWithPlainDate
|
|
6
|
+
} from "./chunk-ZOHYNJUD.js";
|
|
7
|
+
|
|
8
|
+
// src/startOfQuarter.ts
|
|
9
|
+
function startOfQuarter(input, timezone) {
|
|
10
|
+
const zonedDateTime = normalizeWithPlainDate(input, timezone);
|
|
11
|
+
const firstDay = zonedDateTime.with({
|
|
12
|
+
month: quarterStartMonth(zonedDateTime.month),
|
|
13
|
+
day: 1
|
|
14
|
+
});
|
|
15
|
+
return firstDay.startOfDay();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
startOfQuarter
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-XMW72PNW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/startOfQuarter.ts"],"sourcesContent":["import { Temporal } from \"./shared/temporal\";\nimport type { Timezone } from \"./types\";\nimport { normalizeWithPlainDate } from \"./shared/normalizeWithPlainDate\";\nimport { quarterStartMonth } from \"./shared/quarter\";\n\n/**\n * Returns a ZonedDateTime representing the first moment of the quarter\n * (first day of the quarter's starting month at midnight).\n *\n * Quarters: Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @returns ZonedDateTime at the 1st day of the quarter at 00:00:00.000000000\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-05-15T12:00:00Z');\n * const start = startOfQuarter(instant);\n * // 2025-04-01T00:00:00Z[UTC]\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (uses its timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-08-15T15:30:00-05:00[America/New_York]');\n * const start = startOfQuarter(zoned);\n * // 2025-07-01T00:00:00-04:00[America/New_York]\n * ```\n *\n * @example\n * ```ts\n * // From PlainDate (requires timezone)\n * const date = Temporal.PlainDate.from('2025-11-15');\n * const start = startOfQuarter(date, 'America/New_York');\n * // 2025-10-01T00:00:00-04:00[America/New_York]\n * ```\n */\nexport function startOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n): Temporal.ZonedDateTime;\nexport function startOfQuarter(\n input: Temporal.PlainDate,\n timezone: Timezone,\n): Temporal.ZonedDateTime;\nexport function startOfQuarter(\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({\n month: quarterStartMonth(zonedDateTime.month),\n day: 1,\n });\n return firstDay.startOfDay();\n}\n"],"mappings":";;;;;;;;AA6CO,SAAS,eACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,OAAO,QAAS;AAC7D,QAAM,WAAW,cAAc,KAAK;AAAA,IAClC,OAAO,kBAAkB,cAAc,KAAK;AAAA,IAC5C,KAAK;AAAA,EACP,CAAC;AACD,SAAO,SAAS,WAAW;AAC7B;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/shared/quarter.ts
|
|
2
|
+
function quarterOfMonth(month) {
|
|
3
|
+
return Math.floor((month - 1) / 3) + 1;
|
|
4
|
+
}
|
|
5
|
+
function quarterStartMonth(month) {
|
|
6
|
+
return Math.floor((month - 1) / 3) * 3 + 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
quarterOfMonth,
|
|
11
|
+
quarterStartMonth
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-XS2HUADA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/shared/quarter.ts"],"sourcesContent":["/**\n * @internal\n * Quarter math shared by the quarter family. A quarter spans 3 calendar months:\n * Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec.\n *\n * These are internal helpers - do not use directly.\n */\n\n/** The quarter (1-4) that a calendar month (1-12) belongs to. */\nexport function quarterOfMonth(month: number): 1 | 2 | 3 | 4 {\n return (Math.floor((month - 1) / 3) + 1) as 1 | 2 | 3 | 4;\n}\n\n/** The first month (1, 4, 7, or 10) of the quarter that a calendar month belongs to. */\nexport function quarterStartMonth(month: number): number {\n return Math.floor((month - 1) / 3) * 3 + 1;\n}\n"],"mappings":";AASO,SAAS,eAAe,OAA8B;AAC3D,SAAQ,KAAK,OAAO,QAAQ,KAAK,CAAC,IAAI;AACxC;AAGO,SAAS,kBAAkB,OAAuB;AACvD,SAAO,KAAK,OAAO,QAAQ,KAAK,CAAC,IAAI,IAAI;AAC3C;","names":[]}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Temporal,
|
|
3
3
|
isInstant,
|
|
4
4
|
isZonedDateTime
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
6
6
|
|
|
7
7
|
// src/simpleFormat.ts
|
|
8
8
|
function simpleFormat(input, options) {
|
|
@@ -59,4 +59,4 @@ function formatCompactTime(zdt) {
|
|
|
59
59
|
export {
|
|
60
60
|
simpleFormat
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-XWBOD6MD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Temporal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
4
4
|
|
|
5
5
|
// src/now.ts
|
|
6
6
|
function now(timezone) {
|
|
@@ -10,4 +10,4 @@ function now(timezone) {
|
|
|
10
10
|
export {
|
|
11
11
|
now
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-YOSCEJ36.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeTemporalInput
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
|
+
|
|
5
|
+
// src/addQuarters.ts
|
|
6
|
+
function addQuarters(input, quarters) {
|
|
7
|
+
const zonedDateTime = normalizeTemporalInput(input);
|
|
8
|
+
return zonedDateTime.add({ months: quarters * 3 });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
addQuarters
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=chunk-ZEL6JBBH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/addQuarters.ts"],"sourcesContent":["import type { Temporal } from \"@js-temporal/polyfill\";\nimport { normalizeTemporalInput } from \"./shared/normalizeTemporalInput\";\n\n/**\n * Adds the specified number of quarters (3-month blocks) to a datetime.\n *\n * Properly handles month-end dates and calendar edge cases through Temporal API.\n * Instant inputs are converted to UTC. For ZonedDateTime inputs, their timezone is preserved.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @param quarters - Number of quarters to add (can be negative to subtract)\n * @returns ZonedDateTime with quarters added, in the same timezone as input\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-01-20T12:00:00Z');\n * const result = addQuarters(instant, 2);\n * // 2025-07-20T12:00:00Z[UTC] (6 months later)\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (preserves timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-01-20T15:30:00-05:00[America/New_York]');\n * const result = addQuarters(zoned, 1);\n * // 2025-04-20T15:30:00-04:00[America/New_York]\n * ```\n */\nexport function addQuarters(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n quarters: number,\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeTemporalInput(input);\n return zonedDateTime.add({ months: quarters * 3 });\n}\n"],"mappings":";;;;;AA6BO,SAAS,YACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,KAAK;AAClD,SAAO,cAAc,IAAI,EAAE,QAAQ,WAAW,EAAE,CAAC;AACnD;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
|
|
5
5
|
// src/addWeeks.ts
|
|
6
6
|
function addWeeks(input, weeks) {
|
|
@@ -11,4 +11,4 @@ function addWeeks(input, weeks) {
|
|
|
11
11
|
export {
|
|
12
12
|
addWeeks
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-ZG4ROOWI.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTemporalInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTMT5XGC.js";
|
|
4
4
|
import {
|
|
5
5
|
Temporal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
7
7
|
|
|
8
8
|
// src/eachMonthOfInterval.ts
|
|
9
9
|
function eachMonthOfInterval(interval) {
|
|
@@ -37,4 +37,4 @@ function eachMonthOfInterval(interval) {
|
|
|
37
37
|
export {
|
|
38
38
|
eachMonthOfInterval
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-ZGWLIISB.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plainDateToZonedDateTime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5AMAEWX.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeTemporalInput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NTMT5XGC.js";
|
|
7
7
|
import {
|
|
8
8
|
isPlainDate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R7ZCA6AQ.js";
|
|
10
10
|
|
|
11
11
|
// src/shared/normalizeWithPlainDate.ts
|
|
12
12
|
function normalizeWithPlainDate(input, timezone) {
|
|
@@ -16,4 +16,4 @@ function normalizeWithPlainDate(input, timezone) {
|
|
|
16
16
|
export {
|
|
17
17
|
normalizeWithPlainDate
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-ZOHYNJUD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addYears
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YU6BQOZ.js";
|
|
4
4
|
|
|
5
5
|
// src/subYears.ts
|
|
6
6
|
function subYears(input, years) {
|
|
@@ -10,4 +10,4 @@ function subYears(input, years) {
|
|
|
10
10
|
export {
|
|
11
11
|
subYears
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-ZYU3P74L.js.map
|
package/dist/differenceInDays.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
differenceInHours
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X3ARINEH.js";
|
|
4
4
|
import "./chunk-VXOQ7IG5.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-NTMT5XGC.js";
|
|
6
|
+
import "./chunk-R7ZCA6AQ.js";
|
|
7
7
|
export {
|
|
8
8
|
differenceInHours
|
|
9
9
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
differenceInMicroseconds
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DBVGH55Z.js";
|
|
4
|
+
import "./chunk-NTMT5XGC.js";
|
|
5
|
+
import "./chunk-R7ZCA6AQ.js";
|
|
6
6
|
export {
|
|
7
7
|
differenceInMicroseconds
|
|
8
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
differenceInMilliseconds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTLAKRCT.js";
|
|
4
4
|
import "./chunk-VXOQ7IG5.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-NTMT5XGC.js";
|
|
6
|
+
import "./chunk-R7ZCA6AQ.js";
|
|
7
7
|
export {
|
|
8
8
|
differenceInMilliseconds
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
differenceInMinutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EMZFQEWM.js";
|
|
4
4
|
import "./chunk-VXOQ7IG5.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-NTMT5XGC.js";
|
|
6
|
+
import "./chunk-R7ZCA6AQ.js";
|
|
7
7
|
export {
|
|
8
8
|
differenceInMinutes
|
|
9
9
|
};
|