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

Function isThisHour

pkgs/core/src/isThisHour/index.ts:31–39  ·  view source on GitHub ↗
(
  date: DateArg<Date> & {},
  options?: IsThisHourOptions,
)

Source from the content-addressed store, hash-verified

29 * //=> true
30 */
31export function isThisHour(
32 date: DateArg<Date> & {},
33 options?: IsThisHourOptions,
34): boolean {
35 return isSameHour(
36 toDate(date, options?.in),
37 constructNow(options?.in || date),
38 );
39}

Callers 2

test.tsFile · 0.90
_testFunction · 0.90

Calls 3

isSameHourFunction · 0.90
toDateFunction · 0.90
constructNowFunction · 0.90

Tested by

no test coverage detected