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

Function diff

frontend/src/utils/dateTimeUtils.js:45–46  ·  view source on GitHub ↗
(date1, date2, unit = 'millisecond')

Source from the content-addressed store, hash-verified

43 dayjs(dateTime).subtract(value, unit);
44
45export const diff = (date1, date2, unit = 'millisecond') =>
46 dayjs(date1).diff(date2, unit);
47
48export const format = (dateTime, formatStr) =>
49 dayjs(dateTime).format(formatStr);

Callers 6

formatDurationMinutesFunction · 0.90
M3UTableFunction · 0.90
calculateNowPositionFunction · 0.90
calculateScrollPositionFunction · 0.90
RecordingUtils.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected