Imports name this capability’s declared dependencies, which fune builds next to it in your project; each one links to its page.
import { epochDayFromIso } from "./dates_add_days.ts"; ← from dates.add-days ^1.0.0 · built alongside by fune
/**
* Calendar days from one date to another: end minus start, negative when the
* end is earlier. Both dates are parsed strictly, so an impossible date fails
* rather than being rolled into the next month.
*/
export function daysBetween(startIso: string, endIso: string): number {
return epochDayFromIso(endIso) - epochDayFromIso(startIso);
}