blob: c9c74e880d0e024af3b9313db82514ff6517dd37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?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 = htmlentities(date(elgg_echo('friendlytime:date_format'), $vars['time']));
$datetime = htmlentities(date("Y-m-d h:m", $vars['time']));
echo "<time title=\"$timestamp\" datetime=\"$datetime\" class=\"timestamp\">$friendly_time</time>";
|