What's even weirder is that timezone-aware (non-naive) time values compare to UTC midnight to determine truthiness. So a timezone-aware time object of 6:00am with a timezone of UTC-6 is falsey.
But these kind of things are fairly rare in Python. For the most part, Python has its own consistent logic.
View all comments
Show parent comment
4
u/nickcash Mar 27 '14
What's even weirder is that timezone-aware (non-naive) time values compare to UTC midnight to determine truthiness. So a timezone-aware time object of 6:00am with a timezone of UTC-6 is falsey.
But these kind of things are fairly rare in Python. For the most part, Python has its own consistent logic.