mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
Add now() function
This commit is contained in:
parent
bbf7087572
commit
2748149f97
1 changed files with 11 additions and 0 deletions
|
@ -578,4 +578,15 @@ function LSdebugDefined() {
|
|||
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';
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue