function __cronDecodeDate in Elysia Cron 5.2
Same name and namespace in other branches
- 5 elysia_cron_scheduler.inc \__cronDecodeDate()
- 6.2 elysia_cron_scheduler.inc \__cronDecodeDate()
- 6 elysia_cron_scheduler.inc \__cronDecodeDate()
- 7 elysia_cron_scheduler.inc \__cronDecodeDate()
1 call to __cronDecodeDate()
File
- ./
elysia_cron_scheduler.inc, line 77
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;
}