public function writeDate(DateTime $data) {

            $this->stream->writeDouble($data->format('U')*1000);

            // empty timezone
            $this->stream->writeInt(0);
        }
public function writeDate(DateTime $data) {

            $this->stream->writeDouble($data->format('U')*1000);

            // empty timezone
            $this->stream->writeInt(0);
        }
public function writeDate ( DateTime $ data ) { $ this -> stream -> writeDouble ( $ data -> format ( 'U' ) * 1000 ) ; // empty timezone $ this -> stream -> writeInt ( 0 ) ; }
Writes a date object

@param DateTime $data
@return void
Writes a date object