aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/friendlytime.php
blob: 22f60d5178d5d0906b751dea58f6d07d05f93379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
/**
 * Friendly time
 * Translates an epoch time into a human-readable time.
 * 
 * @uses string $vars['time'] Unix-style epoch timestamp
 */

$friendly_time = elgg_get_friendly_time($vars['time']);
$timestamp = htmlspecialchars(date(elgg_echo('friendlytime:date_format'), $vars['time']));

echo "<acronym title=\"$timestamp\">$friendly_time</acronym>";