Please help out to review the problems with my code. It threw up an error message which says;
Value Error: time data ')' does not match format '%H:%M:%S'
Value Error: time data ')' does not match format '%H:%M:%S'
String formatting (strptime) issues
|
||
Please help out to review the problems with my code. It threw up an error message which says;
Value Error: time data ')' does not match format '%H:%M:%S'
If you look at your screenshot, you'll see that the error relates to line 92 in your code, but we can't see line 92, so how are we to help?
That said, it's already been pointed out that a screenshot is not the way to present this.
Sig:
>>> import this The UNIX philosophy: "Do one thing, and do it well." "The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse "Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Jan-06-2023, 06:57 PM
(This post was last modified: Jan-06-2023, 06:57 PM by deanhystad.)
Please post code, not screenshots. If there is an error, post the entire error message, including the entire traceback. Make sure to post the code referenced in the error message.
Your error is on line 92 in your program. There is a datetime.strptime(data_string, format) call where the data_str is does not follow the specified format in the "format" variable ("%H:%M:%S"). At a minimum data_str contains a ')' that is not part of the format. There could be more mismatches. A few comments on the code you did share with us:
| ||
|