Display date and time into post edit comments section

Here is the answer given by Ferman on wpfr.net

function date_commentaire( ){

$comments = get_comments( array( 'post_id' => get_the_ID() ));

if ( doing_action( 'wp_ajax_get-comments' ) )                   
    foreach ( $comments as $comment ) : 
    $a = $comment->comment_ID;
    $b = get_comment_ID();
    $date_comment = get_comment_date();
    $time_comment = get_comment_time();

if ( $a==$b )       
    echo '<p class="commentaire-date">'.'Commentaire N°:   '.$comment->comment_ID.'   du:    '.$date_comment.' à '.$time_comment.'</p>';
    endforeach; 
    
return $comment_author_url; 
}
add_filter( 'get_comment_author_url','date_commentaire');

Works great. I just pasted it into functions.php child theme instead of using the advised plugin.