Systemd.Calendar (systemdkit v0.1.4)

Copy Markdown View Source

Helpers for building systemd calendar expressions.

Summary

Functions

Builds a daily calendar expression at a time of day.

Builds a monthly calendar expression for a day of month and time of day.

Builds a weekly calendar expression for a weekday and time of day.

Functions

daily_at(time)

@spec daily_at(String.t() | Time.t()) :: String.t()

Builds a daily calendar expression at a time of day.

monthly_at(day, time)

@spec monthly_at(pos_integer(), String.t() | Time.t()) :: String.t()

Builds a monthly calendar expression for a day of month and time of day.

weekly_at(day, time)

@spec weekly_at(atom() | String.t(), String.t() | Time.t()) :: String.t()

Builds a weekly calendar expression for a weekday and time of day.