Skip to content

how exactly this cron parser is working here? #81

Description

@siddhant3030

I have tried to import Crontab.CronExpression

Then in iex shell I used this command to parse the corn expression

Crontab.CronExpression.Parser.parse ("* * * * MON-TUE")

But this giving me this output {:ok, ~e[* * * * 1-2 *]}

Crontab.CronExpression.Parser.parse "* * * * *"
{:ok,
  %Crontab.CronExpression{day: [:*], hour: [:*], minute: [:*],
  month: [:*], weekday: [:*], year: [:*]}}

How this example is working?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions