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

Function isSameSecond

pkgs/core/src/isSameSecond/index.ts:41–46  ·  view source on GitHub ↗
(
  laterDate: DateArg<Date> & {},
  earlierDate: DateArg<Date> & {},
)

Source from the content-addressed store, hash-verified

39 * //=> false
40 */
41export function isSameSecond(
42 laterDate: DateArg<Date> & {},
43 earlierDate: DateArg<Date> & {},
44): boolean {
45 return +startOfSecond(laterDate) === +startOfSecond(earlierDate);
46}

Callers 2

test.tsFile · 0.90
isThisSecondFunction · 0.90

Calls 1

startOfSecondFunction · 0.90

Tested by

no test coverage detected