WordPress consigue tiempo de publicación
// Retrieve the time at which the post was written.
get_the_time( string $format = '', int|WP_Post $post = null )
TheDutchScorpion
// Retrieve the time at which the post was written.
get_the_time( string $format = '', int|WP_Post $post = null )