Displays the comment time of the current comment.
$formatstringoptional
'time_format' option.Default:''
$comment_idint|WP_Commentoptional
For time format, see Formatting Date and Time.
function comment_time( $format = '', $comment_id = 0 ) {
echo get_comment_time( $format, false, true, $comment_id );
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comment_time