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

Function sameTime

pkgs/core/src/differenceInDays/test.ts:75–82  ·  view source on GitHub ↗
(t1: Date, t2: Date)

Source from the content-addressed store, hash-verified

73 const HOUR = 1000 * 60 * 60;
74 const MINUTE = 1000 * 60;
75 function sameTime(t1: Date, t2: Date): boolean {
76 return (
77 t1.getHours() === t2.getHours() &&
78 t1.getMinutes() === t2.getMinutes() &&
79 t1.getSeconds() === t2.getSeconds() &&
80 t1.getMilliseconds() === t2.getMilliseconds()
81 );
82 }
83
84 expect(start).not.toBe(undefined);
85 expect(end).not.toBe(undefined);

Callers 1

test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected