OTPHP\TOTP::at PHP Метод

at() публичный Метод

public at ( $timestamp )
    public function at($timestamp)
    {
        return $this->generateOTP($this->timecode($timestamp));
    }

Usage Example

 public function testNow()
 {
     $totp = new TOTP('JDDK4U6G3BJLEZ7Y');
     $this->assertEquals($totp->at(time()), $totp->now());
 }