MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / isSame

Function isSame

frontend/src/utils/dateTimeUtils.js:37–38  ·  view source on GitHub ↗
(date1, date2, unit = 'day')

Source from the content-addressed store, hash-verified

35export const isAfter = (date1, date2) => dayjs(date1).isAfter(date2);
36
37export const isSame = (date1, date2, unit = 'day') =>
38 dayjs(date1).isSame(date2, unit);
39
40export const add = (dateTime, value, unit) => dayjs(dateTime).add(value, unit);
41

Callers 2

formatTimeFunction · 0.90
calculateHourTimelineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected