PHPMailer\PHPMailer

PHPMailer::rfcDate │ public static │ WP 1.0

Return the current date and time as an RFC 822 formatted date.

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

string.

Использование

$result = PHPMailer::rfcDate();

Код PHPMailer::rfcDate() WP 7.1.2

public static function rfcDate()
{
    //Set the time zone to whatever the default is to avoid 500 errors
    //Will default to UTC if it's not set properly in php.ini
    date_default_timezone_set(@date_default_timezone_get());

    return date(self::RFC822_DATE_FORMAT);
}