Re:Pendulum – Python datetimes made easy
by jsmeaton on Wednesday August 17, 2016 @02:32AM
(#12302861)
Django provides django.utils.timezone to make handling dates and times easier. Not every python project has access to django.utils.timezone. pytz is mostly what you need to get timezones right, but there's still room for something like this.
[ Parent
| on HN ]
Re:Pendulum – Python datetimes made easy
by Walkman on Wednesday August 17, 2016 @02:41PM
(#12307203)
good point, but still, there are at least 3-4 libraries which do exactly what this library is trying to do and do a better job at it
Re:Pendulum – Python datetimes made easy
by sdispater on Wednesday August 17, 2016 @05:23PM
(#12308590)
What libraries? I'm honestly interested to know which ones you refer to.
Re:Pendulum – Python datetimes made easy
by Walkman on Thursday August 18, 2016 @06:21AM
(#12311424)
https://dateutil.readthedocs.io
http://delorean.readthedocs.io
http://github.hubspot.com/sanetime/
https://github.com/zachwill/moment
https://docs.djangoproject.com/en/1.10/topics/i18n/timezones...
The most similar to this are Arrow and Delorean, maybe Django timezone if you use Django.
Re:Pendulum – Python datetimes made easy
by sdispater on Thursday August 18, 2016 @11:05AM
(#12313011)
So, basically, you haven't read any of my comments. Arrow is really flawed see https://pendulum.eustace.io/faq/#why-not-arrow and Delorean is not as complete feature-wise as Pendulum. Both of these libraries do not handle properly shifting time around DST transition times which is a big flaw in itself beacause it's not accurate.