TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Semantics of timezone-aware datetime arithmetic
1 points
by
gregsadetsky
about 1 year ago
1 comment
gregsadetsky
about 1 year ago
As DST is rolling around in a few hours, I was curious whether Python's `datetime.datetime` and `timedelta` would return the "right" thing i.e. I would be able to add 1 minute to 1:59am and get 3am. But it's not that easy :-)