Skip to content

【Question】cron Not support DayOfWeek 'L'  #464

@whillt

Description

@whillt

in old version: github.com/robfig/cron v1.2.0

use expression:
p, err := cron.Parse("0 20 14 ? * 5L")
occur error: strconv.Atoi: parsing "5L": invalid syntax

so upgrade new version:github.com/robfig/cron/v3 v3.0.0
use expression:
subsParser := cron.NewParser(cron.Second | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow) sched, err := subsParser.Parse("0 20 14 ? * 5L")

still have errors :failed to parse int from 5L: strconv.Atoi: parsing "5L": invalid syntax

Looking forward to your reply thank you

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