raku-community-modules / DateTime-TimeZone

A Raku library for working with Time Zones
https://raku.land/zef:raku-community-modules/DateTime::TimeZone
Artistic License 2.0
4 stars 7 forks source link

DateTime::Olson #2

Open supernovus opened 11 years ago

supernovus commented 11 years ago

Thanks to retupmoca++ there is a full Olson DB parsing utility available in this repository now. I would like to use it as a basis to finish the DateTime::Olson library that I'd started last year and never completed.

This issue is to track the progress of that project, and to gather any feedback from the contributors (at this point, retupmoca and myself.)

zostay commented 7 years ago

Btw, the DateTime::TimeZone::Zone bits are often broken. Running .offset on the GMT zone, for example, will always fail because the zones were generated pre-GLR and so the lists are formatted incorrectly. The script for generating the classes is also broken because it defines rules named <to> and <from>, which break the cursor object (redefining the built-in .to and .from).

I have a branch where I added tests to reveal the most obvious .offset breakages, fixed the worst of the grammar bugs, and corrected some of the surface issues but as I started digging I realized that the tzdata parser and .offset calculation need a bit more TLC than I had thought, so I don't know if I actually want to spend the effort at this moment to go through that and finish the job, but I'm going to post a link to my WIP with these comments in case I don't get back to work on this immediately, in case it's helpful to someone else.

https://github.com/zostay/perl6-timezone/tree/fix-broken-tzs