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
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:
Thanks, I had to add %I to the strftime line