public function writeDate(ORBDateTime $datetime)
 {
     /*XmlElement*/
     $dateElement = $this->doc->createElement($this->DATE);
     $dateElement->nodeValue = $datetime->getDateTime();
     $el = array_pop($this->stack);
     $el->appendChild($dateElement);
     array_push($this->stack, $el);
 }
 public function writeDate(ORBDateTime $datetime)
 {
     parent::write(Datatypes::DATE_DATATYPE_V3);
     parent::writeVarInt(0x1);
     parent::writeDouble($datetime->getTotalMs());
 }
 public function writeDate(ORBDateTime $datetime)
 {
     parent::write(11);
     parent::writeDouble((double) $datetime->getTotalMs());
     parent::writeShort((int) $datetime->getTimeZone());
 }