get_post_time
get_post_time ( $d = 'U', $gmt = false, $post = null, $translate = false )
Parameters:- (string) $d Optional Either 'G', 'U', or php date format.
- (bool) $gmt Optional, default is false. Whether to return the gmt time.
- (int|object) $post Optional post ID or object. Default is global $post object.
- (bool) $translate Whether to translate the time string
Returns:Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: -
Description
Retrieve the time at which the post was written.