You are here

function socialfeed_time_elapsed_string in Social Feed 8

Same name and namespace in other branches
  1. 7.2 socialfeed.block.inc \socialfeed_time_elapsed_string()

Displays date in Twitter format.

1 call to socialfeed_time_elapsed_string()
template_preprocess_socialfeed_twitter_post in ./socialfeed.theme.inc
Preprocess socialfeed_twitter_post.

File

./socialfeed.theme.inc, line 119
Theme preprocessors.

Code

function socialfeed_time_elapsed_string($datetime) {
  return Carbon::instance($datetime)
    ->diffForHumans();
}