%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
namespace Mpdf\Utils;
class PdfDate
{
/**
* PDF documents use the internal date format: (D:YYYYMMDDHHmmSSOHH'mm'). The date format has these parts:
*
* YYYY The full four-digit year. (For example, 2004)
* MM The month from 01 to 12.
* DD The day from 01 to 31.
* HH The hour from 00 to 23.
* mm The minute from 00 to 59.
* SS The seconds from 00 to 59.
* O The relationship of local time to Universal Time (UT), as denoted by one of the characters +, -, or Z.
* HH The absolute value of the offset from UT in hours specified as 00 to 23.
* mm The absolute value of the offset from UT in minutes specified as 00 to 59.
*
* @return string
*/
public static function format($date)
{
$z = date('O'); // +0200
$offset = substr($z, 0, 3) . "'" . substr($z, 3, 2) . "'"; // +02'00'
return date('YmdHis', $date) . $offset;
}
}