public function writeDateTime(DateTime $dateTime)
    {
        try {
            $timeStamp = $dateTime->getTimestamp();
            $this->getStream()->write(pack('l', $timeStamp));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::DATETIME, false);
        }
    }
public function writeDateTime(DateTime $dateTime)
    {
        try {
            $timeStamp = $dateTime->getTimestamp();
            $this->getStream()->write(pack('l', $timeStamp));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::DATETIME, false);
        }
    }
public function writeDateTime ( DateTime $ dateTime ) { try { $ timeStamp = $ dateTime -> getTimestamp ( ) ; $ this -> getStream ( ) -> write ( pack ( 'l' , $ timeStamp ) ) ; } catch ( StreamException $ e ) { $ this -> handleStreamException ( $ e , BinaryStreamAccessException :: DATETIME , false ) ; } }
Write a DateTime from the current binary stream.

@param \DateTime $dateTime A DateTime object.
@throws \qtism\common\storage\BinaryStreamAccessException
Write a DateTime from the current binary stream .