Timex.Parse.ZoneInfo.Parser (timex v3.7.12)

View Source

This module is responsible for parsing binary zoneinfo files, such as those found in /usr/local/zoneinfo.

Summary

Functions

Parses a binary representing a valid zoneinfo file.

Like parse/1, but expects a file path to parse.

Functions

parse(arg1)

@spec parse(binary()) ::
  {:ok, Timex.Parse.ZoneInfo.Parser.Zone.t()} | {:error, binary()}

Parses a binary representing a valid zoneinfo file.

Parses the timezone information inside, and returns it as a Zone struct.

parse_file(path)

Like parse/1, but expects a file path to parse.