On Wed, Sep 2, 2009 at 9:51 AM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, 26 Aug 2009, Silvia Pfeiffer wrote:<br>
><br>
> I am trying to use the specification of Dates and times given in section<br>
> 2.4.5.<br>
<br>
</div>How? That section is just introducing concepts for the rest of the spec.<br></blockquote><div><br>I was looking at harmonising the way in which time is specified in W3C Media Fragment URIs with the way in which we are doing it in HTML5. Therefore, there is no relationship to any HTML5 elements.<br>
<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> I was surprised to find that there is a specification of a valid month<br>
> string, but not of a valid year string or a valid day string. Is that an<br>
> oversight?<br>
<br>
</div>No, nothing in the spec uses the term "valid year string" or "valid day<br>
string", so I didn't need to define them.<br></blockquote><div><br>As I realised that, I understood why it's been done the way it is. So, while I believe it's a hard to read section if all you're looking for is to understand the date format, I now also understand why it is done the way it is.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, 27 Aug 2009, Silvia Pfeiffer wrote:<br>
><br>
> I was trying to find out what restrictions we are putting on the year<br>
> part of the string. E.g. are we allowing years before the year 0 and<br>
> how.<br>
<br>
</div>In what context? <time>? <input type=date>? <ins datetime>? Something<br>
else? (The answer is the same for all of them, but the answer is much<br>
easier to find if you start from a concrete question, and then follow the<br>
definitions back.)<br></blockquote><div><br>My concrete question is independent of a particular element and is not even based in HTML directly.<br> <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> It's all there, and it's all fully defined by recursive definition of<br>
> the parts that are being re-used (e.g. date reuses month (which is<br>
> month-year, but not just month). However, if you are trying to look for<br>
> something, it's rather confusing not to have e.g. year and day exposed<br>
> in the contents, while month is.<br>
<br>
</div>If you're looking for something, start at the start. Don't try to<br>
short-circuit the spec and jump half-way through your answer; if you do<br>
that you might miss restrictions that apply to particular cases.<br></blockquote><div><br>For my particular case, I started at the start, which is the specification of the date string concept. Also, if somebody wants to understand the principle of how time is specified in HTML, this is the place to start and not in the particular elements. I don't think one can prescribe how somebody must read a spec. Rather, a spec should be easy to read no matter which section somebody is interested in.<br>
<br>In any case, it's not a major headache and hardly worth further worrying about. There are more important things to take care of.<br><br>Regards,<br>Silvia.<br><br></div></div>