public function dateTime(WP_Post $post, string $format, string $separator): string
    {
        // phpcs:enable

        Assert::stringNotEmpty($format);
        Assert::stringNotEmpty($separator);

        $postDate = $this->date($post, $format);
        $postTime = $this->time($post, $format);

        return implode([$postDate, $postTime], $separator);
    }
public function dateTime(WP_Post $post, string $format, string $separator): string
    {
        // phpcs:enable

        Assert::stringNotEmpty($format);
        Assert::stringNotEmpty($separator);

        $postDate = $this->date($post, $format);
        $postTime = $this->time($post, $format);

        return implode([$postDate, $postTime], $separator);
    }
public function dateTime ( WP_Post $ post , string $ format , string $ separator ) : string { // phpcs:enable Assert :: stringNotEmpty ( $ format ) ; Assert :: stringNotEmpty ( $ separator ) ; $ postDate = $ this -> date ( $ post , $ format ) ; $ postTime = $ this -> time ( $ post , $ format ) ; return implode ( [ $ postDate , $ postTime ] , $ separator ) ; }
Retrieve the Written Date Time for a Post

@param WP_Post $post
@param string $format
@param string $separator
@return string
@throws InvalidArgumentException
@throws InvalidPostDateException

phpcs:disable Generic.NamingConventions.ConstructorName.OldStyle
Retrieve the Written Date Time for a Post