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

Function isToday

pkgs/core/src/isToday/index.ts:30–38  ·  view source on GitHub ↗
(
  date: DateArg<Date> & {},
  options?: IsTodayOptions | undefined,
)

Source from the content-addressed store, hash-verified

28 * //=> true
29 */
30export function isToday(
31 date: DateArg<Date> & {},
32 options?: IsTodayOptions | undefined,
33): boolean {
34 return isSameDay(
35 constructFrom(options?.in || date, date),
36 constructNow(options?.in || date),
37 );
38}

Callers 2

test.tsFile · 0.90
_testFunction · 0.90

Calls 3

isSameDayFunction · 0.90
constructFromFunction · 0.90
constructNowFunction · 0.90

Tested by

no test coverage detected