Live data from Hacker News

Delorean – datetime conversions in Python

delorean.readthedocs.org

41–42 of 42 posts

Re: Delorean – datetime conversions in Python

#41
post #4

I'm not a fan of the name (or the entire syntax really, but the non-descriptive name is the worst bit). python is generally pretty self-documenting, but calling 'Delorean' to convert times is totally obscure. using datetime and pytz.timezone is a few too many steps at times, but at least it is readable. This is just magic. `return utc.localize(datetime.utcnow()).astimezone(est)` is maybe a little annoying to type out…

The name is marketing and I'm sure we're all more likely to remember because we all have a real world association with that name and back to the future.
Post reply on HN