Skip to main content

Function: fromEpochDay()

fromEpochDay(epochDay): CalendarDate

Defined in: src/lib/dates/index.ts:106

Inverse of toEpochDay: turn an integer epoch-day count back into a CalendarDate (UTC).

Parameters

epochDay

number

Whole number of days since 1970-01-01 (may be negative).

Returns

CalendarDate

The corresponding calendar date. Note: the result is built directly and is not re-validated through makeDate.