get_comment_time
get_comment_time ( $format = '', $gmt = false, $translate = true, $comment_id = 0 )
Parameters:- (string) format Optional. PHP date format. Defaults to the 'time_format' option.
- (bool) gmt Optional. Whether to use the GMT date. Default false.
- (bool) translate Optional. Whether to translate the time (for use in feeds). Default true.
- (int|WP_Comment) comment_id Optional. WP_Comment or ID of the comment for which to get the time. Default current comment.
Returns:- (string) The formatted time.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the comment time of the current comment.