UNPKG

@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

34 lines (17 loc) 561 B
[**@uplink-protocol/form-controller v0.3.1**](../README.md) *** [@uplink-protocol/form-controller](../globals.md) / isSameTime # Function: isSameTime() > **isSameTime**(`time1`, `time2`): `boolean` Defined in: [Time/utils/time.utils.ts:12](https://github.com/jmkcoder/uplink-protocol-calendar/blob/4cde26f472352440ee258db7670fce2e95651862/src/Time/utils/time.utils.ts#L12) Check if two times are the same (ignoring date part) ## Parameters ### time1 `Date` First time ### time2 `Date` Second time ## Returns `boolean` Whether times are the same