function _cronDecodeDate in Elysia Cron 7.2
Helper function for _elysia_cron_next_run().
1 call to _cronDecodeDate()
- _elysia_cron_next_run in ./
elysia_cron_scheduler.inc - Helper function for cron run schedule.
File
- ./
elysia_cron_scheduler.inc, line 100 - Schedules cron runs.
Code
function _cronDecodeDate($timestamp, $min_diff = 0) {
$time = floor($timestamp / 60);
$time += $min_diff;
$date = $time ? getdate($time * 60) : 0;
$date = array(
$time ? $date['minutes'] : 0,
$time ? $date['hours'] : 0,
$time ? $date['mday'] : 0,
$time ? $date['mon'] : 0,
$time ? $date['year'] : 0,
);
return $date;
}