stein v0.4.0 Stein.Timer View Source

Functions around daily timer processes

Link to this section Summary

Functions

Calculate the delay to the next daily cycle

Link to this section Types

Link to this type

milliseconds() View Source
milliseconds() :: integer()

Link to this type

runs_at_opts() View Source
runs_at_opts() :: Keyword.t()

Link to this section Functions

Link to this function

calculate_daily_cycle_delay(now, runs_at) View Source
calculate_daily_cycle_delay(DateTime.t(), runs_at_opts()) :: milliseconds()

Calculate the delay to the next daily cycle