Adldap\Models\RootDse::getCurrentTime PHP Method

getCurrentTime() public method

Returns the hosts current time in unix timestamp format.
public getCurrentTime ( ) : integer
return integer
    public function getCurrentTime()
    {
        $time = $this->getFirstAttribute($this->schema->currentTime());
        return DateTime::createFromFormat($this->timestampFormat, $time)->getTimestamp();
    }