2020-05-02 / 5886阅 / 悠然
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 defaults to the value specified in the time_format option.
Default value: ''
(int|WP_Post)
(Optional)
WP_Post object or ID. Default is global $post object.
Default value: null
(string|int|false) Formatted date string or Unix timestamp if $format is 'U' or 'G'. False on failure.