Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4899

MicroPython • Re: Modify date on an LCD clock with RTC module 1307

$
0
0
We don't have the datetime module, but we do have time.

https://docs.micropython.org/en/latest/ ... /time.html

Can you do something with time.ticks_add() to add 5 days to the current time to get a new timestamp, then time.localtime() to convert that for display?

Five days in ms is 432,000,000.

Statistics: Posted by ame — Wed Nov 27, 2024 10:04 pm



Viewing all articles
Browse latest Browse all 4899

Trending Articles