Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetPreviousOccurrence #67

Open
andr3marra opened this issue Mar 15, 2024 · 1 comment
Open

GetPreviousOccurrence #67

andr3marra opened this issue Mar 15, 2024 · 1 comment

Comments

@andr3marra
Copy link

Hello, I want to know how I can get a Previous Ocurrence from a Cron expression. I tried reading the source code but couldn't understand how it works. The only i could get it is expression.GetOccurence(DateTime.MinValue.ToUniversalTime(), fromUTC).Reverse().Skip(1).First(). Is there a better way to do this?
Does this request makes sense to add as a feature? If so what can I read to better my understanding of the algorithm used so I can implement it myself.
Ty in advance

@zhangguichang
Copy link

How is this problem currently being solved?

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

No branches or pull requests

2 participants