These are 12-hour time variables. They are complex but I managed to do it, as Scratch usually only holds 24-hour time variables.
USE WITH CREDIT. ANY PROJECTS I SEE THAT DON'T CREDIT ME WHEN THEY USE MY GAME WILL BE REPORTED.