Scroll Phat Clock from 24hr to 12hr

Hi,

i have the Scroll Phat clock and i dont know how to change the time from 24 hour format to a 12 hour format.

Sorry im a noob and i just cant figure it out.

Thanks

Python is well documented, here’s the documentation for strftime which takes the time object and formats it as a string:

https://docs.python.org/2/library/time.html#time.strftime

Thanks, I had to add %I to the strftime line

1 Like