/ Published in: PHP

Foromat {timestamp} as a "x x ago" date/time.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$timestamp = 1286578041; // Drupal 7 format_interval(REQUEST_TIME - $timestamp); // Drupal 6
Comments
