OTPHP\TOTP::at PHP Method

at() public method

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

Usage Example

コード例 #1
0
 public function testNow()
 {
     $totp = new TOTP('JDDK4U6G3BJLEZ7Y');
     $this->assertEquals($totp->at(time()), $totp->now());
 }