2020-05-01 / 5787阅 / 悠然
Retrieve the time at which the post was written.
(string)
(Optional)
Format to use for retrieving the time the post was written. Either 'G', 'U', or PHP date format.
Default value: 'U'
(bool)
(Optional)
Whether to retrieve the GMT time.
Default value: false
(int|WP_Post)
(Optional)
WP_Post object or ID. Default is global $post object.
Default value: null
(bool)
(Optional)
Whether to translate the time string.
Default value: false
(string|int|false) Formatted date string or Unix timestamp if $format is 'U' or 'G'. False on failure.