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