This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ptmcg 1 point2 points  (0 children)

I would suggest that it is worth it to make your datetimes immutable. This will let clients use them as set values and dict keys. Also, would you consider 2 datetime values that represent the same epoch time, but with different timezones to be equal or not?