MCPcopy
hub / github.com/date-fns/date-fns / getISODay

Function getISODay

pkgs/core/src/getISODay/index.ts:30–36  ·  view source on GitHub ↗
(
  date: DateArg<Date> & {},
  options?: GetISODayOptions,
)

Source from the content-addressed store, hash-verified

28 * //=> 7
29 */
30export function getISODay(
31 date: DateArg<Date> & {},
32 options?: GetISODayOptions,
33): number {
34 const day = toDate(date, options?.in).getDay();
35 return day === 0 ? 7 : day;
36}

Callers 3

test.tsFile · 0.90
_testFunction · 0.90
setISODayFunction · 0.90

Calls 1

toDateFunction · 0.90

Tested by

no test coverage detected