_section = __METHOD__; $command = Util::CMD_SET_TIME; $command_string = pack('I', Util::encodeTime($t)); return $self->_command($command, $command_string); } /** * @param ZKLib $self * @return bool|mixed */ public function get(ZKLib $self) { $self->_section = __METHOD__; $command = Util::CMD_GET_TIME; $command_string = ''; $ret = $self->_command($command, $command_string); if ($ret) { return Util::decodeTime(hexdec(Util::reverseHex(bin2hex($ret)))); } else { return false; } } }