The simplest approach is to convert all times of day to seconds past midnight (as a long integer); especially if the RTC is in 24 hour mode.
Then it is easy to turn a pump on when the integer time is equal to or greater than a certain value, and off again at a later time.