the_time( string $format = '' )
Displays the time at which the post was written.
Parameters
- $format
-
(Optional) Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format.<br> Defaults to the 'time_format' option.
Default value: ''
Source
File: wp-includes/general-template.php
function the_time( $d = '' ) {
/**
* Filters the time a post was written for display.
*
* @since WP-0.71
*
* @param string $get_the_time The formatted time.
* @param string $d The time format. Accepts 'G', 'U',
* or php date format.
*/
echo apply_filters( 'the_time', get_the_time( $d ), $d );
}
Changelog
Version | Description |
---|---|
0.71 | Introduced. |