time_zone_info v0.1.0 TimeZoneInfo.Updater View Source

Handles the automatic update and the initial setup.

Link to this section Summary

Functions

Updates the TimeZoneInfo data.

Link to this section Types

Link to this type

step()

View Source
step() :: :run | :initial | :force | :check | :disabled | :finally | :maybe

Link to this section Functions

Link to this function

update(opt \\ :run)

View Source
update(opt :: :run | :force) ::
  :ok | {:next, Calendar.second()} | {:error, term()}

Updates the TimeZoneInfo data.

With opt :run an normal update process is started. The opt :force forced an update process.

Returns

  • :ok if automatic updates are disabled.
  • {:next, seconds} where seconds is the time to wait until the next update.
  • {:error, reason} in case of an error.