Repository navigation
A batch of community fixes 🙌 — thank you @jayhemnani9910, @pcbeingused333, @imsurya26!
⚠️ Behavior changes
diffDays/diffWeekscount calendar days across DST (#93):diffDays("2026-03-15", "2026-03-01")is now 14 in DST zones (was 13). Days are counted on the device's wall clock, likeaddDayanddiffMonths, so two instants exactly 14×24h apart across a fall-back now count 13 days.diff()follows suit.diffHoursstays elapsed time.diffMonthsrespects time of day (#104):2024-03-15T09:00vs2024-02-15T10:00is 0 months (a few hours short), was 1. Date-only inputs are unchanged. Flows intodiffYearsanddiff().
Fixes
nearestDaywithmonth/week/yearconstraints no longer returns a day from the previous period (#91)dayOfYearcounts calendar days across skipped dates (e.g. Pacific/Apia 2011) (#97)hourStart/hourEnd/minuteStart/minuteEndstay in the same occurrence of a repeated (fall-back) hour (#102)diffWeeks(date)/diffWeeks(null, date)type-check, comparing with now (#101)