original_string: function ldap_unix2expirationtime($time) {
          $result = false;
          switch ($this->config->user_type) {
              case 'edir':
                  $result=date('YmdHis', $time).'Z';
                  break;
              case 'rfc2307':
              case 'rfc2307bis':
                  $result = $time ; // Already in correct format
                  break;
              default:
                  print_error('auth_ldap_usertypeundefined2', 'auth_ldap');
          }
          return $result;
  
      }
code: function ldap_unix2expirationtime($time) {
          $result = false;
          switch ($this->config->user_type) {
              case 'edir':
                  $result=date('YmdHis', $time).'Z';
                  break;
              case 'rfc2307':
              case 'rfc2307bis':
                  $result = $time ; // Already in correct format
                  break;
              default:
                  print_error('auth_ldap_usertypeundefined2', 'auth_ldap');
          }
          return $result;
  
      }
code_tokens: function ldap_unix2expirationtime ( $ time ) { $ result = false ; switch ( $ this -> config -> user_type ) { case 'edir' : $ result = date ( 'YmdHis' , $ time ) . 'Z' ; break ; case 'rfc2307' : case 'rfc2307bis' : $ result = $ time ; // Already in correct format break ; default : print_error ( 'auth_ldap_usertypeundefined2' , 'auth_ldap' ) ; } return $ result ; }
docstring: Takes unix timestamp and returns it formated for storing in LDAP
  
  @param integer unix time stamp
docstring_tokens: Takes unix timestamp and returns it formated for storing in LDAP