Scroll Phat Clock from 24hr to 12hr


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.


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

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

1 Like