import java.time.ZoneId;
import java.time.ZonedDateTime;

class Main {
    public static void main(String[] args) {
        // Change the time zone ID as per your requirement
        ZoneId zoneId = ZoneId.of("Europe/London");
        ZonedDateTime now = ZonedDateTime.now(zoneId);

        int sHour = 21, sMinute = 0, sSecond = 0, sNano = 0;
        int eHour = 22, eMinute = 0, eSecond = 0, eNano = 0;

        ZonedDateTime startTime = now.withHour(sHour)
                .withMinute(sMinute)
                .withSecond(sSecond)
                .withNano(sNano);

        ZonedDateTime endTime = now.withHour(eHour)
                .withMinute(eMinute)
                .withSecond(eSecond)
                .withNano(eNano);

        if (!now.isBefore(startTime) && !now.isAfter(endTime)) {
            // Silence
            // It is from 9:00 PM to 10:00 PM in this example
            System.out.println("🤫");
        } else {
            // The alarm will play
            System.out.println("cock-a-doodle-doo");
        }
    }
}