UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

17 lines (16 loc) 614 B
/** * DevExtreme (esm/__internal/scheduler/r1/utils/day.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { getViewStartByOptions, setOptionHour } from "./base"; export const calculateStartViewDate = (currentDate, startDayHour, startDate, intervalDuration) => { const firstViewDate = getViewStartByOptions(startDate, currentDate, intervalDuration, startDate); return setOptionHour(firstViewDate, startDayHour) };