Files
ezic/include/ezic.hrl
aj 188f31d543 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.).
2010-11-03 15:06:51 -07:00

30 lines
536 B
Erlang

-record(rule, {name, from, to, type, in, on, at, save, letters}).
-record(zone, {name, gmtoff, rules, format, until}).
-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.