20 $date = Values::normalizeTime(
$time);
31 if (strtotime(
"-{$friendly_time_number_of_days}days") < $date->getTimestamp()) {
46 'datetime' => $date->format(
'c'),
elgg_get_friendly_time(int $time, int $current_time=null)
Formats a UNIX timestamp in a friendly way (eg "less than a minute ago")
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
Saves user notification settings.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if($date_updated &&($date_updated->getTimestamp() > $date->getTimestamp()+60)) $attributes
$friendly_time_number_of_days
if(!empty($time_updated)) catch(DataFormatException $e) $default_friendly_time_number_of_days
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.