public function time(WP_Post $post, string $format): string
    {
        Assert::stringNotEmpty($format);

        $postTime = get_the_time($format, $post);

        $this->bailIfInvalidValue($postTime, $post);

        return $postTime;
    }
public function time(WP_Post $post, string $format): string
    {
        Assert::stringNotEmpty($format);

        $postTime = get_the_time($format, $post);

        $this->bailIfInvalidValue($postTime, $post);

        return $postTime;
    }
public function time ( WP_Post $ post , string $ format ) : string { Assert :: stringNotEmpty ( $ format ) ; $ postTime = get_the_time ( $ format , $ post ) ; $ this -> bailIfInvalidValue ( $ postTime , $ post ) ; return $ postTime ; }
Retrieve the Written Time for a Post

@param WP_Post $post
@param string $format
@return string
@throws InvalidArgumentException
@throws InvalidPostDateException
Retrieve the Written Time for a Post