How to use time in if statements

I have a DS3231 time module and I want to make events happen based upon the time

By far the easiest way to do this is to use the Arduino time library (TimeLib.h), which internally keeps track of time in seconds since Jan 1, 1970.

Time comparisons then become a straightforward "if" statement, and importantly, the RTC can be used to automatically update the internal time, so you don't have to constantly call the RTC functions to get the time.