Can use the integrated variables.
Thanks to @crecoder for the original project! I just removed the seconds, some variables, and the date to simplify it. Not much...