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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user