MCPcopy
hub / github.com/flatpickr/flatpickr / setHoursFromDate

Function setHoursFromDate

src/index.ts:324–330  ·  view source on GitHub ↗

* Syncs time input values with a date

(dateObj?: Date)

Source from the content-addressed store, hash-verified

322 * Syncs time input values with a date
323 */
324 function setHoursFromDate(dateObj?: Date) {
325 const date = dateObj || self.latestSelectedDateObj;
326
327 if (date && date instanceof Date) {
328 setHours(date.getHours(), date.getMinutes(), date.getSeconds());
329 }
330 }
331
332 /**
333 * Sets the hours, minutes, and optionally seconds

Callers 3

initFunction · 0.85
minMaxDateSetterFunction · 0.85
setDateFunction · 0.85

Calls 1

setHoursFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…