The Schedule Time Frames API allows you to keep track of when schedules start and end.
With the Schedule Time Frames API, you can:
For example, Wix Bookings uses the Schedule Time Frames API to determine when courses start and end.
For more in-depth scheduling management, see:
It’s important to note the following points before starting to code:
To use the ScheduleTimeFrames API, install the @wix/calendar
package using npm or Yarn:
npm install @wix/calendar
or
yarn add @wix/calendar
Then import { scheduleTimeFrames }
from @wix/calendar
:
import { scheduleTimeFrames } from "@wix/calendar";