Esempio n. 1
0
 function distance_of_time_in_words_to_now($from_time, $include_seconds = false)
 {
     return DateHelper::time_ago_in_words($from_time, $include_seconds);
 }
Esempio n. 2
0
 public function test_time_ago_in_words()
 {
     $this->assertEqual(DateHelper::time_ago_in_words('2000-02-01 01:00:00'), DateHelper::distance_of_time_in_words('2000-02-01 01:00:00', Ak::time()));
 }