W3cubDocs

/WordPress

comment_time( string $d = '' )

Display the comment time of the current comment.

Description

Parameters

$d

(string) (Optional) The format of the time. Default user's settings.

Default value: ''

Source

File: wp-includes/comment-template.php

function comment_time( $d = '' ) {
	echo get_comment_time( $d );
}

Changelog

Version Description
0.71 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comment_time