评论/日期格式

用于在模板中渲染DateTime对象为简单格式化字符串的日期格式化器

v0.0.1 2013-09-07 00:50 UTC

This package is auto-updated.

Last update: 2024-09-06 08:37:00 UTC


README

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version Total Downloads

Commentar项目提供的简单日期渲染器。此日期格式化器用于格式化评论中使用的DateTime对象。这些日期的示例包括“发布日期”和“更新帖子”的时间戳。

安装

将格式化器添加到项目的composer.json文件中

"require": {
    "commentar/date-format": "0.0.*",
}

在模板中使用它

<?php echo $this->renderView('DateFormat', ['timestamp' => $comment['updated']]); ?>