#T-SQL, 43 bytes Returns 1 for true, 0 for false <!-- language: lang-sql --> DECLARE @ INT=235959 PRINT-1/~(@/10000/24+@/100%100/60+@%100/60)