In SEC XBRL financial filings, why do the date ranges for duration contexts not match the context's quarter?
e.g. The markup for the context "D2012Q3" may look like:
<xbrli:context id="D2012Q3">
<xbrli:entity>
<xbrli:identifier scheme="http://www.sec.gov/CIK">0000826083</xbrli:identifier>
</xbrli:entity>
<xbrli:period>
<xbrli:startDate>2011-07-30</xbrli:startDate>
<xbrli:endDate>2011-10-28</xbrli:endDate>
</xbrli:period>
</xbrli:context>
As you can see, the context is for the 3rd quarter of 2012, but only covers the date range from 2011-7-30 to 2011-10-28, which is 11 months before the 3rd quarter of 2012. Why is this?
And this pattern isn't even consistent, because other contexts, even for the same company, may look like:
<xbrli:context id="D2011Q4YTD">
<xbrli:entity>
<xbrli:identifier scheme="http://www.sec.gov/CIK">0000826083</xbrli:identifier>
</xbrli:entity>
<xbrli:period>
<xbrli:startDate>2010-01-30</xbrli:startDate>
<xbrli:endDate>2011-01-28</xbrli:endDate>
</xbrli:period>
</xbrli:context>
Here, Q4 of 2011 has date ranges covering an entire year. Presumably, the YTD indicates an aggregation over several quarters, but I still don't understand where they're the date ranges from or what they signify.