Add now() function

This commit is contained in:
Benjamin Renard 2014-09-30 13:48:50 +02:00
parent bbf7087572
commit 2748149f97

View file

@ -578,4 +578,15 @@ function LSdebugDefined() {
return $retval; return $retval;
} }
/**
* Return current date in LDAP format
*
* @param[in] $mixed Anything (to permit using as generated function)
*
* @retval string The current date in LDAP format (YYYYMMDDHHMMSSZ)
**/
function now($mixed=Null) {
return date ('YmdHis').'Z';
}
?> ?>