MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / isSameDay

Function isSameDay

core/src/components/datetime/utils/comparison.ts:8–12  ·  view source on GitHub ↗
(baseParts: DatetimeParts, compareParts: DatetimeParts)

Source from the content-addressed store, hash-verified

6 * Returns true if the selected day is equal to the reference day
7 */
8export const isSameDay = (baseParts: DatetimeParts, compareParts: DatetimeParts) => {
9 return (
10 baseParts.month === compareParts.month && baseParts.day === compareParts.day && baseParts.year === compareParts.year
11 );
12};
13
14/**
15 * Returns true is the selected day is before the reference day.

Callers 7

DatetimeClass · 0.90
validatePartsFunction · 0.90
getClosestValidDateFunction · 0.90
generateTimeFunction · 0.90
getCalendarDayStateFunction · 0.90
comparison.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected