本文整理汇总了PHP中Functions::DateFormat方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::DateFormat方法的具体用法?PHP Functions::DateFormat怎么用?PHP Functions::DateFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Functions
的用法示例。
在下文中一共展示了Functions::DateFormat方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<a class="delete confirm" href="<?php
echo $pagination->GetURL('delete=' . $comment->comment_id);
?>
" data-confirm="You're about to delete this comment. This cannot be undone. Do you want to proceed?">Delete</a>
</div>
</td>
<td><a href="<?php
echo $video->url;
?>
/"><?php
echo $video->title;
?>
</a></td>
<td><?php
echo Functions::DateFormat('m/d/Y', $comment->date_created);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
echo $pagination->paginate();
?>
示例2: SimpleXMLElement
$namespace .= ' xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"';
$xml_root = '<urlset' . $namespace . '></urlset>';
$xml_frame = $xml_header . $xml_root;
$xml = new SimpleXMLElement($xml_frame);
// Add video entries
while ($row = $db->FetchObj($result)) {
$video = new Video($row->video_id);
$url = $xml->addChild('url');
$url->addChild('loc', $video->url . '/');
$block = $url->addChild('video:video', '', 'video');
$block->addChild('content_loc', $config->flv_url . '/' . $video->filename . '.flv');
$block->addChild('thumbnail_loc', $config->thumb_url . '/' . $video->filename . '.jpg');
$block->addChild('title', $video->title);
$block->addChild('description', $video->description);
$block->addChild('rating', Rating::GetFiveScaleRating($row->video_id));
$block->addChild('view_count', $video->views);
$block->addChild('publication_date', Functions::DateFormat('Y-m-d', $video->date_created));
foreach ($video->tags as $_value) {
$block->addChild('tag', $_value);
}
$block->addChild('category', $row->cat_name);
$block->addChild('family_friendly', 'yes');
$block->addChild('duration', Functions::DurationInSeconds($video->duration));
}
} else {
App::Throw404();
}
// Output XML
Plugin::Trigger('video_sitemap.output');
header("Content-type: text/xml");
echo $xml->asXML();
示例3:
/pages_edit.php?id=<?php
echo $page->page_id;
?>
">Edit</a>
<a class="delete confirm" href="<?php
echo $pagination->GetURL('delete=' . $page->page_id);
?>
" data-confirm="You are about to delete this page, this cannot be undone. Are you sure you want to do this?">Delete</a>
</div>
</td>
<td><?php
echo $page->status == 'published' ? 'Published' : 'Draft';
?>
</td>
<td><?php
echo Functions::DateFormat('m/d/Y', $page->date_created);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
echo $pagination->paginate();
?>
示例4:
<a href="<?php
echo $pagination->GetURL('dismiss=' . $flag->id);
?>
">Dismiss Flag</a>
<a class="delete" href="<?php
echo $pagination->GetURL('ban=' . $flag->id);
?>
">Ban</a>
</div>
</td>
<td><?php
echo $user->username;
?>
</td>
<td><?php
echo Functions::DateFormat('m/d/Y', $flag->date_created);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
echo $pagination->paginate();
?>
示例5:
<?php
}
?>
<a class="delete confirm" href="<?php
echo $pagination->GetURL('delete=' . $user->user_id);
?>
" data-confirm="You're about to delete this member and their content. This cannot be undone. Do you want to proceed?">Delete</a>
</div>
</td>
<td><?php
echo $user->email;
?>
</td>
<td><?php
echo Functions::DateFormat('m/d/Y', $user->date_created);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
echo $pagination->paginate();
?>
示例6:
<a class="delete confirm" href="<?php
echo $pagination->GetURL('delete=' . $video->video_id);
?>
" data-confirm="You're about to delete this video. This cannot be undone. Do you want to proceed?">Delete</a>
</div>
</td>
<td class="category"><?php
echo $categories[$video->cat_id];
?>
</td>
<td><?php
echo $video->username;
?>
</td>
<td><?php
echo Functions::DateFormat('m/d/Y', $video->date_created);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
echo $pagination->paginate();
?>