3 ms·
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
by jsmeaton 10y ago
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.
- Walkman 10y agogood 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
- sdispater 10y agoWhat libraries? I'm honestly interested to know which ones you refer to.
- Walkman 10y agohttps://dateutil.readthedocs.io https://dateutil.readthedocs.io http://crsmithdev.com/arrow/ http://crsmithdev.com/arrow/ http://pythonhosted.org/pytz/ http://pythonhosted.org/pytz/ http://delorean.readthedocs.io http://delorean.readthedocs.io http://github.hubspot.com/sanetime/ http://github.hubspot.com/sanetime/ https://github.com/zachwill/moment https://github.com/zachwill/moment https://docs.djangoproject.com/en/1.10/topics/i18n/timezones/ 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.
- sdispater 10y agoSo, basically, you haven't read any of my comments. Arrow is really flawed see https://pendulum.eustace.io/faq/#why-not-arrow 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.