parsing tzdata files appears to be functionally complete.

calling ezic:load("/path/to/tzdata_folder") returns a list of records without erroring-out.
The content may not be accurate; @todo create accuracy tests (idea: use system's zic/localtime/tzselect/etc.).
This commit is contained in:
aj
2010-11-03 15:06:51 -07:00
parent 3c965fe7b6
commit 188f31d543
6 changed files with 276 additions and 28 deletions

View File

@@ -8,5 +8,22 @@
-record(link, {from, to}).
-record(leap, {datetime, corr, rs}).
-record(tztime, {time, flag}).
-record(tzon, {day, filter}).
% a flattened zone record, giving specific information for a specific time range.
-record(flatzone, {tzname, tzrule, from, to, gmtoff}).
-ifdef(debug).
-define(debug(F,X), io:format("{~p:~p} - " ++ F ++ "~n", [?MODULE, ?LINE] ++ X)).
-else.
-define(debug(F,X), void).
-endif.