The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Human time difference – won't work Reply To: Human time difference – won't work



Right ok, I thought it was a function that I could insert instead of another date function. The link you gave says:

human_time_diff( get_the_time(‘U’), current_time(‘timestamp’) )

Is acceptable, so why would

$cb_date = ‘<i class=”fa fa-clock-o”></i> <time class=”updated” datetime=”‘ . human_time_diff(get_the_time(‘U’),current_time(‘timestamp’)) . ‘ago’; ‘”>’ . date_i18n( get_option(‘date_format’), strtotime(human_time_diff(get_the_time(‘U’),current_time(‘timestamp’)))) . ‘</time>‘;

Not work?

It’s difficult for me because I can’t find anything referring to ‘time’ in any of my theme’s code except for the above. :(