function date($code, $num) { $ts = HessianUtils::timestampFromBytes64($this->read(8)); /*$data = unpack('N2', $this->read(8)); $ts = ($data[1] *256*256*256*256 ) + $data[2]; $ts = $ts / 1000;*/ return $ts; }
function parseDate($code, $num) { $ts = HessianUtils::timestampFromBytes64($this->read(8)); $this->logMsg("timestamp {$ts}"); return $ts; }