I try to manipulate the time and get these errors on raspberry pi.
Running these on my mac in python no problems.
What is wrong?Code:
current_time = time.localtime() ^^^^^^^^^^^^^^AttributeError: 'Time' object has no attribute 'localtime' File "/home/pi/Moon/subpoint.py", line 311, in <module> currentMillis = int(round(time.time() * 1000)) # Convert seconds to milliseconds ^^^^^^^^^AttributeError: 'Time' object has no attribute 'time'
Seeing more of the script, how it is invoked, and knowing what model of RPi board and what OS it is running might all be helpful in providing a focussed reply. A listing of the filenames in your current working directory might also help.
Statistics: Posted by B.Goode — Thu Feb 01, 2024 12:02 pm