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

Function isTomorrow

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

Source from the content-addressed store, hash-verified

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

Callers 2

test.tsFile · 0.90
_testFunction · 0.90

Calls 3

isSameDayFunction · 0.90
addDaysFunction · 0.90
constructNowFunction · 0.90

Tested by

no test coverage detected