Reader::readTimeWithoutTag PHP Method

readTimeWithoutTag() public method

public readTimeWithoutTag ( )
    public function readTimeWithoutTag()
    {
        $hms = $this->stream->read(6);
        $u = '000000';
        $tag = $this->stream->getc();
        if ($tag == Tags::TagPoint) {
            $u = $this->stream->read(3);
            $tag = $this->stream->getc();
            if ($tag >= '0' && $tag <= '9') {
                $u .= $tag . $this->stream->read(2);
                $tag = $this->stream->getc();
                if ($tag >= '0' && $tag <= '9') {
                    $this->stream->skip(2);
                    $tag = $this->stream->getc();
                }
            } else {
                $u .= '000';
            }
        }
        if ($tag == Tags::TagUTC) {
            $time = date_create_from_format('!Hisu', $hms . $u, timezone_open('UTC'));
        } else {
            $time = date_create_from_format('!Hisu', $hms . $u);
        }
        $this->refer->set($time);
        return $time;
    }