Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
storing datime on rtc
#2
hex() is a function that takes a number and turns it into a string (one that looks like a hex representation of a decimal number). That makes NowTime a list of strings, not a list of integers.

>>> type(hex(24))
<class 'str'>
0x18 and 24 are the exact same thing. You don't need to convert one into the other. I think you just need to get rid of the hex conversions.

>>> 0x18 == 24
True
Reply


Messages In This Thread
storing datime on rtc - by ebolisa - Jul-06-2020, 05:40 PM
RE: storing datime on rtc - by bowlofred - Jul-06-2020, 08:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Taking user input and storing that to a variable then storing that variable to a list jowalk 12 37,393 Mar-27-2017, 11:45 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020