What is the difference between pytz and python-dateutil?

I am trying to implement timezone information in my Python application, and I came across two different Python modules that implement this function: pytz and python-dateutil. I am wondering what is the difference between these two modules?

(pytz) http://pytz.sourceforge.net/

(python-dateutil) http://labix.org/python-dateutil

+8
python
source share
3 answers

Both provide useful support for processing time zones. I personally used pytz in my django applications and found it useful and convenient to work with. Hope my two cents will help.

+4
source share

I use both packages. I personally don't like how python-dateutil is packaged (this whole version of python 2 and this version for python 3), it was not even on pypi. python-dateutil is great for parsing, even if it is somewhat slow (it parses though). I would argue that my pytz package money has become the standard for time zones.

+2
source share

I personally would prefer the pytz package. python-dateutil is a little weird to use and a bit slower

+1
source share

All Articles