Skip to content

Conversation

@imihajlow
Copy link

Ported scripts to python3, fixed a lot of bugs, added unit tests, cleaned-up and changed library interface to prevent name collisions. Basically, made this library useful (before the fix even the leap year function had a bug).

* Port compile_tzlinks.py to python3, use geonames instead of nominatim

* Port other scripts to python3

* Update timezone database

* Fix leap year formula

* Make zone names char

* Reduce C warnings

* Make declarations extern

* Add leap year test

* Unit tests, some refactoring and fixes

* Fix and test daylight saving time for US

* Test DST on previous UTC day

* More tests

* Timezone iterator function

* Handle no rules case

* Add default timezone

* More initialization functions

* Negate and subtract offset

* Add aliased datetime fields

* Compile zones

* Set tz name pointer from the table

* 16-bit year

* Apply namespace to types

* Apply namespace to macros

* Newline at EOF

* Export zone count

* Offset comparison function

* Delete controversial comment

* Format abbreviations with %s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant