PHP Class LdapTools\AttributeConverter\ConvertGeneralizedTime

Inheritance: implements LdapTools\AttributeConverter\AttributeConverterInterface, use trait AttributeConverterTrait
Datei anzeigen Open project: ldaptools/ldaptools

Public Methods

Method Description
fromLdap ( $timestamp )
toLdap ( $date )

Protected Methods

Method Description
getTzOffsetForTimestamp ( string $tzOffset ) : string Get the timezone offset that will be appended to the timestamp.

Method Details

fromLdap() public method

public fromLdap ( $timestamp )

getTzOffsetForTimestamp() protected method

Get the timezone offset that will be appended to the timestamp.
protected getTzOffsetForTimestamp ( string $tzOffset ) : string
$tzOffset string As given from the \DateTime object.
return string

toLdap() public method

public toLdap ( $date )