You are here

function lc_int_to_age in Link checker 5

1 call to lc_int_to_age()
linkchecker_cron in ./linkchecker.module
Implementation of hook_cron() Rebuild the table if necessary.

File

./linkchecker.module, line 589
This module periodically check html links referenced by drupal nodes Developed and maintained by Marek Tichy, marek@ecn.cz

Code

function lc_int_to_age($when) {
  $y = substr($when, 0, 4);
  $m = substr($when, 4, 2);
  $d = substr($when, 6, 2);
  $time = time() - mktime(0, 0, 0, $m, $d, $y);
  return $time;
}