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

Function toDate

frontend/src/utils/dateTimeUtils.js:58–58  ·  view source on GitHub ↗
(dateTime)

Source from the content-addressed store, hash-verified

56export const isValid = (dateTime) => dayjs(dateTime).isValid();
57
58export const toDate = (dateTime) => dayjs(dateTime).toDate();
59
60export const formatExactDuration = (seconds) => {
61 if (seconds < 60) return `${seconds.toFixed(1)} seconds`;

Callers 3

handleStartDateChangeFunction · 0.90
getFormDefaultsFunction · 0.90
createRoundedDateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected