TimeZoneInfo.DataStore (TimeZoneInfo v0.8.0)

Copy Markdown View Source

A module to store the time zone data in the persistent term.

Summary

Functions

delete!()

@spec delete!() :: :ok

empty?()

@spec empty?() :: boolean()

fetch_rules(rules)

@spec fetch_rules(rule_name :: TimeZoneInfo.rule_name()) ::
  {:ok, rules :: [TimeZoneInfo.rule()]} | {:error, :rules_not_found}

fetch_transitions(time_zone, is_link \\ false)

get_time_zones(list)

@spec get_time_zones([{:links, :include | :ignore | :only}]) :: [Calendar.time_zone()]

info()

@spec info() :: term()

put(data)

@spec put(data :: TimeZoneInfo.data()) :: :ok | :error

version()

@spec version() :: String.t() | nil