Add now() function
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 30 Sep 2014 11:48:50 +0000 (13:48 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 30 Sep 2014 11:54:52 +0000 (13:54 +0200)
public_html/includes/functions.php

index 191915c..3baef41 100644 (file)
@@ -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';
+  }
+
 ?>