isWithin APIs
These APIs return true if specified target dates occur within working hours. Holidays are excluded from working during calculation. Return type is boolean.
Use Shift Configured for Logged-in User
isWithin(DateTime targetDate)
Use Shift Configured for Passed-in User
isWithinByUser(UUID userId, DateTime targetDate)
Use Passed-in Shift
isWithinByShift(UUID shiftId, DateTime targetDate)
For more information: