Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#T-SQL, 42 41 bytes
Saved 1 byte thanks to @Neil
Supports all positive integer input
Returns 1 for true, 0 for false
DECLARE @ INT=235959 PRINT-1/~(@/240000+@/100%100/60+@%100/60)
Saved 1 byte thanks to @Neal@Neil
Saved 1 byte thanks to @Neal
#T-SQL, 4242 41 bytes
DECLARE @ INT=235959 PRINT-1/~(@/5000/48+@240000+@/100%100/60+@%100/60)
I was able to golf it 1 byte
@/10000/24 was changed to @/5000/48
#T-SQL, 42 bytes
DECLARE @ INT=235959 PRINT-1/~(@/5000/48+@/100%100/60+@%100/60)