Idfk
12-10-2010, 02:13 AM
Can anyone tell me the problems with this?
public function timestampConvert($timestamp){
$difference = time() - $timestamp;
if($difference < 24) {
return "Today";
}else{
$difference = round($difference / 24);
if($difference < 1) {
return "Yesterday";
}
}
}
public function timestampConvert($timestamp){
$difference = time() - $timestamp;
if($difference < 24) {
return "Today";
}else{
$difference = round($difference / 24);
if($difference < 1) {
return "Yesterday";
}
}
}