MCPcopy
hub / github.com/flatpickr/flatpickr / parseSeconds

Function parseSeconds

src/utils/dates.ts:165–169  ·  view source on GitHub ↗
(secondsSinceMidnight: number)

Source from the content-addressed store, hash-verified

163};
164
165export const parseSeconds = (secondsSinceMidnight: number) => {
166 const hours = Math.floor(secondsSinceMidnight / 3600),
167 minutes = (secondsSinceMidnight - hours * 3600) / 60;
168 return [hours, minutes, secondsSinceMidnight - hours * 3600 - minutes * 60];
169};
170
171export const duration = {
172 DAY: 86400000,

Callers 2

setHoursFromInputsFunction · 0.90
onChangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…