Search found 3 matches

by MungoBBQ
Thu Nov 04, 2021 5:09 pm
Forum: Raspberry Pi microcontroller boards
Topic: Problems with time.localtime()
Replies: 4
Views: 3127

Re: Problems with time.localtime()

The tuple taken by RTC.datetime is subtley different from that returned by date.localtime And similarly you can’t pass the tuple returned by RTC.datetime into time.mktime THANK YOU! Never in a million years do I think I would have found that small difference on my own. What a weird difference to ha...
by MungoBBQ
Mon Nov 01, 2021 7:03 am
Forum: Raspberry Pi microcontroller boards
Topic: Problems with time.localtime()
Replies: 4
Views: 3127

Re: Problems with time.localtime()

scruss wrote:
Mon Nov 01, 2021 1:31 am
asked and answered here, too: Getting EINVAL when attempting to set the RTC in my pico - Raspberry Pi Forums
Yeh, that’s me. ;) But a different problem.
by MungoBBQ
Sun Oct 31, 2021 10:45 pm
Forum: Raspberry Pi microcontroller boards
Topic: Problems with time.localtime()
Replies: 4
Views: 3127

Problems with time.localtime()

I'm trying to build a clock using the Pico. Right now I am working on setting the clock, which will be done with a button on the back. I'm using the RTC and its functions to display the time. Every time the button is pushed, I want to set the time five minutes ahead of the current time. I thought th...