this is a example of a 12h clock and a 24h clock feel free to use it in your project.
if i made some mistakes, comment the issue you are having so i can fix it right away. [UPDATE] added the PM/AM Functionality