How can I find Time Zone Database version when using `arrow` or `dateutil`?

557 Views Asked by At

I am using arrow module for Python for time zone manipulations. As far as I understand it, it relies on dateutil module for time zone information. dateutil claims:

Internal up-to-date world timezone information based on Olson's database.

I have only found c:\Python34\Lib\site-packages\dateutil\zoneinfo\dateutil-zoneinfo.tar.gz which seems to be used. I have deducted that it is downloaded from http://www.iana.org/time-zones, however it still does not give any hints what version of the database it is.

Is there a way to find what version of Olson's database is being used by arrow module?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, arrow depends on dateutil for tz data.

Unfortunately, dateutil doesn't keep the tzdb version number when it builds its data file, so it is not available at run time.

Walking through the dateutil source code:

If this feature is important to you, I suggest opening a feature request in the dateutil issue tracker.