Python Pythonの日時比較でTypeError?タイムゾーン付き・なしを安全に扱う Pythonの日時比較でTypeErrorが出る理由と、UTCと日本時間を安全に扱う方法。 2026.11.18 Python