protected function write4ByteDate($d) { $t = getdate($d); return $this->writeShort($t['year']) + $this->writeChar($t['mon']) + $this->writeChar($t['mday']); }