A WordPress-centric search engine for devs and theme authors



the_time ›

Since0.71
Deprecatedn/a
the_time ( $d = '' )
Parameters:
  • (string) $d Either 'G', 'U', or php date format.
    Required: No
    Default: (empty)
Defined at:
Codex:

Display the time at which the post was written.



Source

function the_time( $d = '' ) {
	/**
	 * Filters the time a post was written for display.
	 *
	 * @since 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 );
}