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

Function add

frontend/src/utils/dateTimeUtils.js:40–40  ·  view source on GitHub ↗
(dateTime, value, unit)

Source from the content-addressed store, hash-verified

38 dayjs(date1).isSame(date2, unit);
39
40export const add = (dateTime, value, unit) => dayjs(dateTime).add(value, unit);
41
42export const subtract = (dateTime, value, unit) =>
43 dayjs(dateTime).subtract(value, unit);

Callers 5

formatTimeFunction · 0.90
calculateHourTimelineFunction · 0.90
createRoundedDateFunction · 0.90
TVChannelGuideFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected