Languages: English • 日本語 (Add your language)
Displays the time of the current post. To return the time of a post, use get_the_time(). This tag must be used within The Loop.
<?php the_time( $d ); ?>
Displays the time using your WordPress defaults.
<p>Time posted: <?php the_time(); ?></p>
Displays the time using the format parameter string 'g:i a' (ex: 10:36 pm).
<p>Time posted: <?php the_time('g:i a'); ?></p>
Displays the time using the 24 hours format parameter string 'G:i' (ex: 17:52).
<p>Time posted: <?php the_time('G:i'); ?></p>
Displays the time in the date format 'F j, Y' (ex: December 2, 2004), which could be used to replace the tag the_date().
<div><?php the_time('F j, Y'); ?></div>
Displays the date and time.
<p>Posted: <?php the_date('F j, Y'); ?> at <?php the_time('g:i a'); ?></p>
get_calendar(), get_day_link(), get_month_link(), get_the_date(), get_the_time(), get_year_link(), single_month_title(), the_date(), the_date_xml(), the_modified_date(), get_the_modified_date(), the_modified_time(), get_the_modified_time(), the_time()