本文整理汇总了PHP中date::full_date_time方法的典型用法代码示例。如果您正苦于以下问题:PHP date::full_date_time方法的具体用法?PHP date::full_date_time怎么用?PHP date::full_date_time使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类date
的用法示例。
在下文中一共展示了date::full_date_time方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __get
/**
* Output dates as friendly dates
* @developer Brandon Hansen
* @date May 16, 2010
*/
public function __get($key)
{
if (in_array($key, array('created_at', 'modified_at'))) {
return date::full_date_time(parent::__get($key));
} else {
return parent::__get($key);
}
}
示例2: foreach
<th>Status</th>
<th>Amount</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<?php
foreach ($orders as $order) {
?>
<tr>
<td><?php
echo html::anchor($order->show_path(), '#' . $order);
?>
</td>
<td><?php
echo date::full_date_time($order->created_at);
?>
</td>
<td><?php
echo $order->status;
?>
</td>
<td><?php
echo format::dollar_format($order->order_amount());
?>
</td>
<td><?php
echo $order->notes;
?>
</td>
</tr>
示例3:
<?php
if (frache::start('blog_entry_' . (string) $blog)) {
?>
<div class="journal_entry">
<div class="journal_meta">
<?php
echo html::anchor($blog->show_path(), $blog->title);
?>
<span class="the_time"><?php
echo date::full_date_time($blog->created_at);
?>
</span>
</div>
<div class="journal_entry_content">
<?php
echo nl2br($blog->content);
?>
</div>
</div>
<?php
frache::stop();
}
示例4: nl2br
<div class="journal_entry">
<div class="journal_meta">
<?php
echo html::anchor($journal->show_path(), $journal->title);
?>
<span class="edit_journal_link"><?php
echo html::anchor($journal->edit_path(), '(Edit)');
?>
</span>
<span class="the_time"><?php
echo date::full_date_time($journal->created_at);
?>
</span>
</div>
<div class="journal_entry_content">
<?php
echo nl2br($journal->content);
?>
</div>
</div>
示例5: foreach
<h4>Order History</h4>
<table>
<thead>
<tr>
<th>Time</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
foreach ($order->order_histories as $history) {
?>
<tr>
<td><?php
echo date::full_date_time($history->created_at);
?>
</td>
<td><?php
echo $history->status;
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div id="order_billing_shipping">
<address>