@uplink-protocol/calendar-controller
Version:
Flexible calendar and time picker API supporting both calendar, date-picker, and time-picker integrations for any JavaScript framework or library
40 lines (20 loc) • 611 B
Markdown
[**@uplink-protocol/form-controller v0.3.1**](../README.md)
***
[@uplink-protocol/form-controller](../globals.md) / isTimeInRange
# Function: isTimeInRange()
> **isTimeInRange**(`time`, `startTime`, `endTime`): `boolean`
Defined in: [Time/utils/time.utils.ts:28](https://github.com/jmkcoder/uplink-protocol-calendar/blob/4cde26f472352440ee258db7670fce2e95651862/src/Time/utils/time.utils.ts#L28)
Check if a time is within a range
## Parameters
### time
`Date`
Time to check
### startTime
`Date`
Range start time
### endTime
`Date`
Range end time
## Returns
`boolean`
Whether time is in range