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

Question #1

Open
mrAlishah opened this issue Feb 27, 2022 · 1 comment
Open

Question #1

mrAlishah opened this issue Feb 27, 2022 · 1 comment

Comments

@mrAlishah
Copy link

hi mr.Javad,
first appreciated.
if I want to set weekly or monthly from date to date and between time. play ffmpeg from start date time and close ffmpeg session and console in another time by concurrency.
may i help me , how can i do it.
thanks.

@Ja7ad
Copy link
Member

Ja7ad commented Feb 27, 2022

hi mr.Javad, first appreciated. if I want to set weekly or monthly from date to date and between time. play ffmpeg from start date time and close ffmpeg session and console in another time by concurrency. may i help me , how can i do it. thanks.

Hi

You can run scheduler from specific time.

t := time.Date(2022, time.February, 29, 15, 0, 0, 0, time.Local)
sched.Every(1).Hour().From(&t).Do(task)

https://github.com/Ja7ad/Scheduler/blob/6fca602478ce7155e1914101f33ddaf2fb386005/_example/multiple/scheduler/main.go#L13

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