UNPKG

@mantine/dates

Version:

Calendars, date and time pickers based on Mantine components

15 lines (14 loc) 778 B
"use client"; const require_time_to_seconds = require("../time-to-seconds/time-to-seconds.cjs"); //#region packages/@mantine/dates/src/components/TimePicker/utils/get-time-range/get-time-range.ts function getTimeRange({ startTime, endTime, interval }) { const timeRange = []; const startInSeconds = require_time_to_seconds.timeToSeconds(startTime); const endInSeconds = require_time_to_seconds.timeToSeconds(endTime); const intervalInSeconds = require_time_to_seconds.timeToSeconds(interval); for (let current = startInSeconds; current <= endInSeconds; current += intervalInSeconds) timeRange.push(require_time_to_seconds.secondsToTime(current).timeString); return timeRange; } //#endregion exports.getTimeRange = getTimeRange; //# sourceMappingURL=get-time-range.cjs.map