Open AshleyYakeley opened 7 years ago
I believe the olsonPosixTZ
field determines how the clocks are changed for days after all the explicit transitions. However, there seems to be no place in TimeZoneSeries
for this information.
This seems to be the best specification of the old POSIX TZ format: http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
Thanks! Yes, TimeZoneSeries
currently does not support rules for transitions beyond those that are listed explicitly.
It would be even nicer for TimeZoneSeries
to support the more general rules in tzdata
source files. That would make it possible to write an alternative tzdata
compiler in Haskell. The extra layer of correctness verification provided by Haskell's type system would be very appropriate for such a critical piece of basic infrastructure.
In any case, this would be a breaking change in TimeZoneSeries
, although it would not break code that only uses the functions provided and does not access the constructor directly.
I ran this test program:
Result:
By comparison, the C library correctly gives EDT: