WordPress.org

Codex

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

Function Reference/get the modified time

Description

Retrieve the time at which the post was last modified.

Usage

<?php get_the_modified_time$d ); ?>

Parameters

d
(string) (optional) The format used to display the time (and date). See Formatting Date and Time for other time and date formats.
Default: 'U' (unix timestamp)
post
(integer/object) (optional) post ID or object.
Default: null. global $post object

Return Values

(string) 
Return last modified time with format from options-general

Change Log

Since: 2.0

Source File

get_the_modified_time() is located in wp-includes/general-template.php

Related

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()

See also index of Function Reference and index of Template Tags.