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

Human-readable crons? #130

Open
egeersoz opened this issue Feb 15, 2024 · 2 comments
Open

Human-readable crons? #130

egeersoz opened this issue Feb 15, 2024 · 2 comments

Comments

@egeersoz
Copy link

Can support be added to convert Crons to human-readable strings? e.g. "Every Sunday at 6:00PM"

Ideally, this should also work with different timezones, e.g. you should be able to specify the timezone of the cron, and the target, e.g. if the Cron is UTC and you want it displayed in CST, it should be possible to do so.

@maennchen
Copy link
Owner

Are you asking to convert text to cron expressions or the other way around?

Converting text to cron expression sounds quite complicated and I‘m not sure if that would have a place in this library.

Converting cron to text should be a lot simpler and could help users understand their expressions.

In either case, I‘m open to explore the possibility, but will not have the time to do so myself. If you‘d like to explore this, you‘d have to document the desired and detailed behaviour theoretically and also be willing to provide a PR later.

What use case do you have for this feature?

@egeersoz
Copy link
Author

Need to be able to convert cron expressions to human-readable strings. Basically, what Crontab.guru does.

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

No branches or pull requests

2 participants