Code:
<?php echo datetime_to_text($comment->created); ?>
<?php echo datetime_to_text($comment->created); ?>
funkcija je:
Code:
function datetime_to_text($datetime="") {
$unixdatetime = strtotime($datetime);
return strftime("%B %d, %Y at %I:%M %p", $unixdatetime);
}
function datetime_to_text($datetime="") {
$unixdatetime = strtotime($datetime);
return strftime("%B %d, %Y at %I:%M %p", $unixdatetime);
}