WordPress:Template Tags/comment time
來自站長百科
描述[ ]
顯示評(píng)論發(fā)表的時(shí)間。標(biāo)簽必須用在The Loop或者一個(gè)評(píng)論loop內(nèi)部。
用法[ ]
%%% <?php comment_time('d'); ?> %%%
例子[ ]
以"22:04:11"格式顯示評(píng)論時(shí)間。
<p>comment 時(shí)間標(biāo)記: <?php comment_time('H:i:s'); ?></p>
參數(shù)[ ]
- d
- (string)時(shí)間格式。默認(rèn)為WordPress中設(shè)置的時(shí)間格式。請(qǐng)看看形成日期和時(shí)間格式。
相關(guān)的[ ]
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