UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

14 lines (13 loc) 404 B
"use client"; import { millisecondsInWeek as m } from "./constants.js"; import { startOfISOWeek as a } from "./startOfISOWeek.js"; import { startOfISOWeekYear as o } from "./startOfISOWeekYear.js"; import { toDate as i } from "./toDate.js"; function O(r, e) { const t = i(r, e == null ? void 0 : e.in), f = +a(t) - +o(t); return Math.round(f / m) + 1; } export { O as default, O as getISOWeek };