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

MicroPython • Re: pico onboard rtc and lack of datetime module

$
0
0
results in:
>>>
(2021, 1, 1, 4, 0, 36, 31, 0)
1609473636
(2021, 1, 1, 4, 0, 36, 4, 1)
>>>
This doesn't look right. tnow is too short and the last two numbers are the minutes. I have misunderstood somehow.
tnow looks correct to me for those dates. Using the date command on a Pi to check it

Code:

$ date -d @1609473636Fri  1 Jan 04:00:36 GMT 2021
You've got: (year, month, day, hour, minute, seconds, microseconds, timezone?) I'm not sure about the last two.

Statistics: Posted by rpdom — Thu Apr 25, 2024 9:10 am



Viewing all articles
Browse latest Browse all 5346

Trending Articles