2014-04-18 5 views

답변

1

템플릿은 당신이 먼저대로

echo timespan(strtotime($this->item->publish_up, $now)) . ' ago'; 
echo timespan(strtotime($this->item->modified, $now)) . ' ago'; 
echo timespan(strtotime($this->item->created, $now)) . ' ago'; 

필요 무시 편집 언어 재정과의 joomla 날짜

https://stackoverflow.com/a/11728790/6096

$post_date = '13436714242'; // strtotime(); 
$now = time(); 

// will echo "2 hours ago" (at the time of this post) 
echo timespan($post_date, $now) . ' ago'; 

그래서 PHP를 날짜 형식으로이 작업을 수행 할 수 있어야한다 날짜를 다시 타임 스탬프로 변환해야합니다. 나는 당신이 몇몇을 찾을 필요가있을 것이다 그것을 할 것이다 다만 1 개의 장소가있을다고 생각하지 않는다.

+0

도움을 주셔서 감사합니다. – AymenEssaied