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

[Enh]: Allow to pass Cron class options in Converter initialization #3

Open
FBruzzesi opened this issue Dec 4, 2024 · 2 comments
Open

Comments

@FBruzzesi
Copy link

Hey there 👋🏼

Let's start from the fact that this is an incredibly useful library/codebase!

I would like to be able to pass Cron options to the Converter.

Current workaround is:

from cron_converter import Cron
from local_crontab import Converter

utc_schedule = Converter(local_schedule, timezone_str=time_zone).to_utc_cron()
return Cron(utc_schedule, {"output_weekday_names": True}).to_string()
@Sonic0
Copy link
Owner

Sonic0 commented Dec 5, 2024

Hi @FBruzzesi, thanks for your appreciation.
I’m currently dealing with some personal matters, but I’ll review your request as soon as possible.

@FBruzzesi
Copy link
Author

Happy to make a contribution if you consider ok adding such feature

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

No branches or pull requests

2 participants