time_zone_info v0.1.1 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 Sourcestep() :: :run | :initial | :force | :check | :disabled | :finally | :maybe
Link to this section Functions
Link to this function
update(opt \\ :run)
View Sourceupdate(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}
whereseconds
is the time to wait until the next update.{:error, reason}
in case of an error.