public function writeDate(ORBDateTime $datetime) { parent::write(11); parent::writeDouble((double) $datetime->getTotalMs()); parent::writeShort((int) $datetime->getTimeZone()); }