Zend\Ldap\Converter\Converter::fromLdapDateTime
Convert an LDAP-Generalized-Time-entry into a DateTime-Object
CAVEAT: The DateTime-Object returned will always be set to UTC-Timezone.
Signature
public function fromLdapDateTime(string
$date,
[bool
$asUtc = true] )
Parameters
$date
— string- The generalized-Time
$asUtc
— object- Return the DateTime with UTC timezone
Returns
- DateTime
Errors/Exceptions
-
InvalidArgumentException
- if a non-parseable-format is given