RobThree\Auth\TwoFactorAuth::getTimeSlice PHP Method

getTimeSlice() private method

private getTimeSlice ( $time = null, $offset )
    private function getTimeSlice($time = null, $offset = 0)
    {
        return (int) floor($time / $this->period) + $offset * $this->period;
    }