LdapTools\AttributeConverter\ConvertGeneralizedTime::getTzOffsetForTimestamp PHP 메소드

getTzOffsetForTimestamp() 보호된 메소드

Get the timezone offset that will be appended to the timestamp.
protected getTzOffsetForTimestamp ( string $tzOffset ) : string
$tzOffset string As given from the \DateTime object.
리턴 string
    protected function getTzOffsetForTimestamp($tzOffset)
    {
        $tzOffset = str_replace(':', '', $tzOffset);
        return $tzOffset == '+0000' ? 'Z' : $tzOffset;
    }