Drupal6 format_date() , . , format_date() , . : , , , .
function mydate_format($timestamp) {
$now = time();
if (($now - $timestamp) < (60*60*24)) {
return "H:i";
}
else {
return "d:m:Y";
}
}
print format_date($timestamp, 'custom', mydate_format($timestamp));
, - , , . _get(), ; , , .
settings.php:
$conf['date_format_long'] = $conf['debug'] ? 'r' : 'l, F j, Y - H:i';
, , settings.php "debug", TRUE . : , - .
- Date API, onlinle. ( PHP ). . , : format_date, format_date(). . Drupal.org.
GOTCHA Drupal . , , alltogether, javascript .
TL; DR. . "" - , .