View Source Crontab.CronExpression.Composer (crontab v1.1.14)

Generate from %CronExpression{} to * * * * * *.

Summary

Functions

Generate from %Crontab.CronExpression{} to * * * * * *.

Functions

Link to this function

compose(cron_expression)

View Source
@spec compose(Crontab.CronExpression.t()) :: binary()

Generate from %Crontab.CronExpression{} to * * * * * *.

Examples

iex> Crontab.CronExpression.Composer.compose %Crontab.CronExpression{}
"* * * * * *"

iex> Crontab.CronExpression.Composer.compose %Crontab.CronExpression{minute: [9, {:-, 4, 6}, {:/, :*, 9}]}
"9,4-6,*/9 * * * * *"

iex> Crontab.CronExpression.Composer.compose %Crontab.CronExpression{reboot: true}
"@reboot"