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

Function constructNow

pkgs/core/src/constructNow/index.ts:32–37  ·  view source on GitHub ↗
(date: DateArg<DateType> | ContextFn<ResultDate> | undefined)

Source from the content-addressed store, hash-verified

30 * }
31 */
32export function constructNow<
33 DateType extends Date,
34 ResultDate extends Date = DateType,
35>(date: DateArg<DateType> | ContextFn<ResultDate> | undefined): ResultDate {
36 return constructFrom(date, Date.now());
37}

Callers 15

startOfTomorrowFunction · 0.90
endOfYesterdayFunction · 0.90
isThisYearFunction · 0.90
startOfYesterdayFunction · 0.90
isTodayFunction · 0.90
isTomorrowFunction · 0.90
isThisSecondFunction · 0.90
isThisWeekFunction · 0.90
isThisQuarterFunction · 0.90
isThisHourFunction · 0.90
isYesterdayFunction · 0.90

Calls 1

constructFromFunction · 0.90

Tested by

no test coverage detected