Python Forum
Issue with 'if' and datetime
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with 'if' and datetime
#7
"looking at it" is not a useful debugging technique. You wrote the code in a way you thought was correct. When you "look at it" you are going to see it as correct. Debugging is really just testing with the purpose of fixing your code. Debugging is an active process. Instead of "looking" you should be "testing". If you have a debugger, single step through the code and verify it works as it should. If you don't have a debugger, or don't like using the debugger, add print statements to you code or extract snippets and test them in little test programs.
Reply


Messages In This Thread
Issue with 'if' and datetime - by blakefindlay - Feb-07-2021, 11:31 PM
RE: Issue with 'if' and datetime - by bowlofred - Feb-08-2021, 12:22 AM
RE: Issue with 'if' and datetime - by blakefindlay - Feb-08-2021, 12:33 AM
RE: Issue with 'if' and datetime - by bowlofred - Feb-08-2021, 12:41 AM
RE: Issue with 'if' and datetime - by deanhystad - Feb-08-2021, 01:04 AM
RE: Issue with 'if' and datetime - by blakefindlay - Feb-08-2021, 01:44 AM
RE: Issue with 'if' and datetime - by deanhystad - Feb-08-2021, 02:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Datetime format issue with z sks3286 2 7,534 Apr-07-2020, 12:26 PM
Last Post: sks3286
  TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str' findbikash 2 9,770 Sep-18-2019, 08:32 AM
Last Post: buran

Forum Jump:

User Panel Messages

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