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

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

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

        return $postTime;
    }