/ Published in: PHP
Foromat {timestamp} as a "x x ago" date/time.
Expand |
Embed | Plain Text
$timestamp = 1286578041; // Drupal 7 format_interval(REQUEST_TIME - $timestamp); // Drupal 6
You need to login to post a comment.
jonathanpglick on 02/25/12
1 person have marked this snippet as a favorite
Foromat {timestamp} as a "x x ago" date/time.
$timestamp = 1286578041; // Drupal 7 format_interval(REQUEST_TIME - $timestamp); // Drupal 6
You need to login to post a comment.