Zend_Ldap_Attribute::convertToLdapDateTimeValue PHP Method

convertToLdapDateTimeValue() public static method

Converts a timestamp into its LDAP date/time representation
public static convertToLdapDateTimeValue ( integer $value, boolean $utc = false ) : string | null
$value integer
$utc boolean
return string | null - null if the value cannot be converted.
    public static function convertToLdapDateTimeValue($value, $utc = false)
    {
        return self::_valueToLdapDateTime($value, $utc);
    }

Usage Example

Exemplo n.º 1
0
 public function testConvertToLdapDateTimeValue()
 {
     $ts = mktime(12, 30, 30, 6, 25, 2008);
     $this->_assertLocalDateTimeString($ts, Zend_Ldap_Attribute::convertToLdapDateTimeValue($ts));
 }