but I can't figure out how to replace the "16:30:00" with variables.
The DateTime() function expects a string. You can create the string using sprintf(). Or, you can call rtc.adjust() using a different overload that takes year, month, day, hour, minutes, and seconds.