comment_time

Display the comment time of the current comment.

Description

comment_time( (string) $d = '' ); 

Parameters (1)

0. $d — Optional. (string) => ''
The format of the time. Default user's settings.

Usage

  1. if ( !function_exists( 'comment_time' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // Optional. The format of the time. Default user's settings. 
  5. $d = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = comment_time($d); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment-template.php  
  1. function comment_time( $d = '' ) { 
  2. echo get_comment_time($d);