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

Function startOfISOWeek

pkgs/core/src/startOfISOWeek/index.ts:35–43  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  options?: StartOfISOWeekOptions<ResultDate> | undefined,
)

Source from the content-addressed store, hash-verified

33 * //=> Mon Sep 01 2014 00:00:00
34 */
35export function startOfISOWeek<
36 DateType extends Date,
37 ResultDate extends Date = DateType,
38>(
39 date: DateArg<DateType>,
40 options?: StartOfISOWeekOptions<ResultDate> | undefined,
41): ResultDate {
42 return startOfWeek(date, { ...options, weekStartsOn: 1 });
43}

Callers 9

startOfISOWeekYearFunction · 0.90
endOfISOWeekYearFunction · 0.90
getISOWeekFunction · 0.90
lastDayOfISOWeekYearFunction · 0.90
setMethod · 0.90
setMethod · 0.90
test.tsFile · 0.90
getISOWeekYearFunction · 0.90

Calls 1

startOfWeekFunction · 0.90

Tested by

no test coverage detected