code: public static boolean isAligned(Instant instant, Schedule schedule) {
      // executionTime.isMatch ignores seconds for unix cron
      // so we fail the check immediately if there is a sub-minute value
      if (!instant.truncatedTo(ChronoUnit.MINUTES).equals(instant)) {
        return false;
      }
  
      final ExecutionTime executionTime = ExecutionTime.forCron(cron(schedule));
      final ZonedDateTime utcDateTime = instant.atZone(UTC);
  
      return executionTime.isMatch(utcDateTime);
    }
docs: Tests if a given instant is aligned with the execution times of a {@link Schedule}.
  
  @param instant  The instant to test
  @param schedule The schedule to test against
  @return true if the given instant aligns with the schedule