Function: toEpochDay()
toEpochDay(
d):number
Defined in: src/lib/dates/index.ts:97
Integer day-count since the Unix epoch (1970-01-01 = day 0), computed in UTC. This is the canonical comparable/arithmetic value for dates: all comparison, min/max, and day-offset helpers route through it so results never depend on the host machine's local timezone.
Parameters
d
The calendar date to convert.
Returns
number
A whole number of days since the epoch (negative for dates before 1970).