TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Semantics of timezone-aware datetime arithmetic

1 pointsby gregsadetskyabout 1 year ago

1 comment

gregsadetskyabout 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 :-)