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

Function isSameDay

pkgs/core/src/isSameDay/index.ts:39–50  ·  view source on GitHub ↗
(
  laterDate: DateArg<Date> & {},
  earlierDate: DateArg<Date> & {},
  options?: IsSameDayOptions | undefined,
)

Source from the content-addressed store, hash-verified

37 * //=> false
38 */
39export function isSameDay(
40 laterDate: DateArg<Date> & {},
41 earlierDate: DateArg<Date> & {},
42 options?: IsSameDayOptions | undefined,
43): boolean {
44 const [dateLeft_, dateRight_] = normalizeDates(
45 options?.in,
46 laterDate,
47 earlierDate,
48 );
49 return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
50}

Callers 6

differenceInBusinessDaysFunction · 0.90
isTodayFunction · 0.90
isTomorrowFunction · 0.90
isYesterdayFunction · 0.90
test.tsFile · 0.90
_testFunction · 0.90

Calls 2

normalizeDatesFunction · 0.90
startOfDayFunction · 0.90

Tested by

no test coverage detected