You are here

function __cronDecodeDate in Elysia Cron 6.2

Same name and namespace in other branches
  1. 5.2 elysia_cron_scheduler.inc \__cronDecodeDate()
  2. 5 elysia_cron_scheduler.inc \__cronDecodeDate()
  3. 6 elysia_cron_scheduler.inc \__cronDecodeDate()
  4. 7 elysia_cron_scheduler.inc \__cronDecodeDate()
1 call to __cronDecodeDate()
_elysia_cron_next_run in ./elysia_cron_scheduler.inc

File

./elysia_cron_scheduler.inc, line 85

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;
}