crontime

Crontime Class provided by System for Cronjob time calculation.

package

SYSTEM\CRON

Methods

Determine if time for next run lies in the past based on a lastrun, a basetime and crontab-style modificators

check(\SYSTEM\CRON\time $base_time, \SYSTEM\CRON\time $last_run, integer $min, integer $hour, integer $day, integer $day_week, integer $month) : boolean
static

Arguments

$base_time

\SYSTEM\CRON\time

Time upon which is checked if the calculated time is in the past

$last_run

\SYSTEM\CRON\time

Time which the calculation should be based upon

$min

integer

Minutes-Modificator for next run

$hour

integer

Hour-Modificator for next run

$day

integer

Day-Modificator for next run

$day_week

integer

Day-Of-The-Week-Modificator for next run

$month

integer

Month-Modificator for next run

Response

boolean

Returns true or false based upon if the calculated Date lies in the past

Determine if time for next run lies in the past based on a lastrun and crontab-style modificators using system-time as compare-time.

check_now(\SYSTEM\CRON\time $last_run, integer $min, integer $hour, integer $day, integer $day_week, integer $month) : boolean
static

Arguments

$last_run

\SYSTEM\CRON\time

Time which the calculation should be based upon

$min

integer

Minutes-Modificator for next run

$hour

integer

Hour-Modificator for next run

$day

integer

Day-Modificator for next run

$day_week

integer

Day-Of-The-Week-Modificator for next run

$month

integer

Month-Modificator for next run

Response

boolean

Returns true or false based upon if the calculated Date lies in the past

Determine last time based on a basetime and crontab-style modificators

last(\SYSTEM\CRON\time $base_time, integer $min, integer $hour, integer $day, integer $day_week, integer $month) : \SYSTEM\CRON\time
static

Arguments

$base_time

\SYSTEM\CRON\time

Time which the calculation should be based upon

$min

integer

Minutes-Modificator for last run

$hour

integer

Hour-Modificator for last run

$day

integer

Day-Modificator for last run

$day_week

integer

Day-Of-The-Week-Modificator for last run

$month

integer

Month-Modificator for last run

Response

\SYSTEM\CRON\time

Returns the requested time

Determine last time based on system-time and crontab-style modificators

last_now(integer $min, integer $hour, integer $day, integer $day_week, integer $month) : \SYSTEM\CRON\time
static

Arguments

$min

integer

Minutes-Modificator for last run

$hour

integer

Hour-Modificator for last run

$day

integer

Day-Modificator for last run

$day_week

integer

Day-Of-The-Week-Modificator for last run

$month

integer

Month-Modificator for last run

Response

\SYSTEM\CRON\time

Returns the requested time

Determine next time based on a basetime and crontab-style modificators

next(\SYSTEM\CRON\time $base_time, integer $min, integer $hour, integer $day, integer $day_week, integer $month) : \SYSTEM\CRON\time
static

Arguments

$base_time

\SYSTEM\CRON\time

Time which the calculation should be based upon

$min

integer

Minutes-Modificator for next run

$hour

integer

Hour-Modificator for next run

$day

integer

Day-Modificator for next run

$day_week

integer

Day-Of-The-Week-Modificator for next run

$month

integer

Month-Modificator for next run

Response

\SYSTEM\CRON\time

Returns the requested time

Determine next time based on the system-time and crontab-style modificators

next_now(integer $min, integer $hour, integer $day, integer $day_week, integer $month) : \SYSTEM\CRON\time
static

Arguments

$min

integer

Minutes-Modificator for next run

$hour

integer

Hour-Modificator for next run

$day

integer

Day-Modificator for next run

$day_week

integer

Day-Of-The-Week-Modificator for next run

$month

integer

Month-Modificator for next run

Response

\SYSTEM\CRON\time

Returns the requested time