Elgg  Version 2.3
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']);
15 echo "<time $attrs>$friendly_time</time>";
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:48
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:129
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:375
Friendly time Translates an epoch time into a human-readable time.
Definition: friendlytime.php:9