src/Google/AdsApi/AdManager/Util/v201805/AdManagerDateTimes.php
public static function toDateTime(AdManagerDateTime $adManagerDateTime)
    {
        $dateTimeString = sprintf(
            '%sT%02d:%02d:%02d',
            AdManagerDates::toDateString($adManagerDateTime->getDate()),
            $adManagerDateTime->getHour(),
            $adManagerDateTime->getMinute(),
            $adManagerDateTime->getSecond()
        );

        return new DateTime(
            $dateTimeString,
            new DateTimeZone($adManagerDateTime->getTimeZoneID())
        );
    }
public static function toDateTime(AdManagerDateTime $adManagerDateTime)
    {
        $dateTimeString = sprintf(
            '%sT%02d:%02d:%02d',
            AdManagerDates::toDateString($adManagerDateTime->getDate()),
            $adManagerDateTime->getHour(),
            $adManagerDateTime->getMinute(),
            $adManagerDateTime->getSecond()
        );

        return new DateTime(
            $dateTimeString,
            new DateTimeZone($adManagerDateTime->getTimeZoneID())
        );
    }
public static function toDateTime ( AdManagerDateTime $ adManagerDateTime ) { $ dateTimeString = sprintf ( '%sT%02d:%02d:%02d' , AdManagerDates :: toDateString ( $ adManagerDateTime -> getDate ( ) ) , $ adManagerDateTime -> getHour ( ) , $ adManagerDateTime -> getMinute ( ) , $ adManagerDateTime -> getSecond ( ) ) ; return new DateTime ( $ dateTimeString , new DateTimeZone ( $ adManagerDateTime -> getTimeZoneID ( ) ) ) ; }
Converts a Ad Manager date time to a PHP date time.

@param AdManagerDateTime $adManagerDateTime
@return DateTime
Converts a Ad Manager date time to a PHP date time .