Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
friendlytime.php
Go to the documentation of this file.
1 <?php
10 $attributes = array();
11 $attributes['title'] = date(elgg_echo('friendlytime:date_format'), $vars['time']);
12 $attributes['datetime'] = date('c', $vars['time']);
14 
15 echo "<time $attrs>$friendly_time</time>";
$attrs
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$vars['entity']
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition: output.php:139
elgg_get_friendly_time($time, $current_time=null)
Formats a UNIX timestamp in a friendly way (eg "less than a minute ago")
Definition: output.php:376
$attributes
$friendly_time
Friendly time Translates an epoch time into a human-readable time.
Definition: friendlytime.php:9