Scroll Phat Clock from 24hr to 12hr


#1

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


#2

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


#3

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