You are here

function _cronT in Elysia Cron 6.2

Same name and namespace in other branches
  1. 5.2 elysia_cron_scheduler_old.inc \_cronT()
  2. 5 elysia_cron_scheduler_old.inc \_cronT()
  3. 6 elysia_cron_scheduler_old.inc \_cronT()
  4. 7 elysia_cron_scheduler_old.inc \_cronT()
1 call to _cronT()
elysia_cron_should_run in ./elysia_cron_scheduler_old.inc

File

./elysia_cron_scheduler_old.inc, line 110

Code

function _cronT($time, $d = -1, $h = -1, $m = -1) {
  if ($d < 0) {
    return date('n', $time) * 31 * 24 * 60 + date('j', $time) * 24 * 60 + date('H', $time) * 60 + date('i', $time);
  }
  else {
    return $time * 31 * 24 * 60 + $d * 24 * 60 + $h * 60 + $m;
  }
}