How to get unix timestamp by entering cron jobs as data

Hello,

I want to schedule multiple tasks from my web page.

For this reason, it is difficult to enter cpanel every time, so I will set cron jobs to run a file from cpanel twice per hour.

Since this file on my website will run cron jobs, all my tasks will be completed on time.

What I want to ask is this:
How can I enter values ​​and get the time to run like cron jobs?
Is there a function that does this?

Sample:
function getTimeToWork($minute,$hour,$day,$moon,$day_of_the_week){

return mktime();
}

getTimeToWork("0,30	*	*	*	*");
Sponsor our Newsletter | Privacy Policy | Terms of Service