Skip to content

Allow NCronTab to parse seconds as well #220

Description

@vininu

From https://github.com/atifaziz/NCrontab README.md

The default format parsed by CrontabSchedule.Parse is the five-part cron
format. In order to use the six-part format that includes seconds, pass a
CrontabSchedule.ParseOptions to Parse with IncludingSeconds set to
true. For example:

var s = CrontabSchedule.Parse("0,30 * * * * *",
                              new CrontabSchedule.ParseOptions
                              {
                                  IncludingSeconds = true
                              });

That would be very useful and is backward compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions