stein v0.5.0 Stein.Timer View Source
Functions around daily timer processes
Link to this section Summary
Link to this section Types
Link to this type
milliseconds()
View Source
milliseconds()
View Source
milliseconds() :: integer()
milliseconds() :: integer()
Link to this type
runs_at_opts()
View Source
runs_at_opts()
View Source
runs_at_opts() :: Keyword.t()
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(now, runs_at)
View Source
calculate_daily_cycle_delay(DateTime.t(), runs_at_opts()) :: milliseconds()
calculate_daily_cycle_delay(DateTime.t(), runs_at_opts()) :: milliseconds()
Calculate the delay to the next daily cycle
Link to this function
calculate_weekly_cycle_delay(now, runs_at)
View Source
calculate_weekly_cycle_delay(now, runs_at)
View Source
calculate_weekly_cycle_delay(DateTime.t(), runs_at_opts()) :: milliseconds()
calculate_weekly_cycle_delay(DateTime.t(), runs_at_opts()) :: milliseconds()
Calculate the delay to the next weekly cycle