WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get comment time

This page is marked as incomplete. You can help Codex by expanding it.

Description

Retrieve the comment time of the current comment. This tag must be within The Loop, or a comment loop.

Use comment_time() to display the value.

Usage

<?php get_comment_time$d$gmt false$translate true ); ?>

Parameters

$d
(string) (optional) The format of the time
Default: WordPress default time setting
$gmt
(boolean) (optional) Whether to use the GMT date
Default: false
$translate
(boolean) (optional) Whether to translate the time (for use in feeds)
Default: true

Return Values

(string) 
The formatted time

Examples

Notes

Change Log

Since: 1.5.0

Source File

get_comment_time() is located in wp-includes/comment-template.php

Related