WordPress:Template Tags/comment time
Description
描述
Displays the time a comment was posted. This tag must be within WordPress:The Loop, or a comment loop.
显示评论发表的时间。标签必须用在The Loop或者一个评论loop内部。
Usage
%%% <?php comment_time('d'); ?> %%%
用法
%%% <?php 评论_时间('d'); ?> %%%
Example
例子
Dsiplays the comment time in the format "22:04:11".
以"22:04:11"格式显示评论时间。
<p>comment timestamp: <?php comment_time('H:i:s'); ?></p>
<p>comment 时间标记: <?php 评论_时间('H:i:s'); ?></p>
Parameters
参数
- d
- (string) Formatting for the time. Defaults to the time format set in WordPress. See WordPress:Formatting Date and Time.
- d
- (string)时间格式。默认为WordPress中设置的时间格式。请看看形成日期和时间格式。
Related
相关的
comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss