How to reload a page when the current time of the PC becomes equal to a time stored in a variable

I'm doing a kind of slideshow, all the information coming from a mysql database, and my problem is that I want to refresh the page when the "$ hora_fim" (end time to more accurate) is equal to the # Current time of the computer "$ hora" (hour)