protected function read3ByteDate() { $y = unpack('c', $this->readByte()); $m = unpack('c', $this->readByte()); $d = unpack('c', $this->readByte()); return mktime(0, 0, 0, $m[1], $d[1], $y[1] > 70 ? 1900 + $y[1] : 2000 + $y[1]); }