Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for reading tzfiles #8

Merged
merged 14 commits into from
Oct 13, 2015
Merged

Support for reading tzfiles #8

merged 14 commits into from
Oct 13, 2015

Conversation

Michael-Klassen
Copy link
Contributor

Add support for parsing a TimeZone from a tzfile

Michael-Klassen and others added 6 commits October 6, 2015 10:09
Before read_tzfile would always convert from big-endian (network byte
order / "standard byte order") to little-endian. Now the code will
convert from big-endian to the endianness of the host.
@omus omus self-assigned this Oct 6, 2015
@omus omus changed the title Tzfile Support for reading tzfiles Oct 6, 2015
- Naming now is closer to Olson.resolve!
- Removed unneeded variables
- Updated reference to IANA which includes details on version 3
@omus
Copy link
Member

omus commented Oct 7, 2015

We should add support for version 2 and version 3 before this gets merged. Here is a example of a version 2 tzfile for Warsaw.

Michael-Klassen and others added 6 commits October 8, 2015 16:44
Also fixed a bug where read_tzfile_internal was returning a
FixedTimeZone in some cases and a Array{Transition} in another.
The initial transition DateTime can sometimes be a value that is suppose
to represent negative infinity. When this happens we should use the
typemin(DateTime).

As part of this change I also introduced tests for the first and last
transition dates for all tzfile tests.
@omus omus force-pushed the tzfile branch 2 times, most recently from f1c6fe4 to 10cbad1 Compare October 9, 2015 23:45
@omus
Copy link
Member

omus commented Oct 10, 2015

Seems to be something up with 32-bit support. Looking into it.

omus added a commit that referenced this pull request Oct 13, 2015
Support for reading tzfiles
@omus omus merged commit dab16e0 into JuliaTime:master Oct 13, 2015
@omus omus deleted the tzfile branch October 13, 2015 15:24
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.

2 participants