[uf-discuss] Parsing dates in preferred format
Andy Mabbett
andy at pigsonthewing.org.uk
Wed Sep 20 16:33:36 PDT 2006
In message <89229C2D-EA32-4421-9A65-1D772C10649B at randomchaos.com>, Scott
Reynen <scott at randomchaos.com> writes
>I could possibly be convinced to write such a Greasemonkey script, but
>I currently suspect it would end up being more annoying than useful.
>For example, here's a clipping from the second (first English) live
>example in the wiki for hCalendar [1]:
>
><th scope="row">Tuesday 12<br>
><abbr class="dtstart" title="2006-09-12T19:30:00+01:00">7:30</
>abbr>–<abbr class="dtend" title="2006-09-12T21:30:00
>+01:00">9:30</abbr>pm</th>
>
>That displays as:
>
>Tuesday 12
>7:30–9:30pm
>
>By auto-converting the ISO8601 dates to my preferred format, that
>would display as:
>
>Tuesday 12
>September 12, 2006 7:30pm–September 12, 2006 9:30pm
>
>I prefer the original, and I suspect this is more the norm than the
>exception.
>
>[1] http://www.westmidlandbirdclub.com/diary/2006-09.htm
Interesting - that's one of my pages.
Can you suggest a better way to mark-up the event?
I could use:
<th scope="row">
<abbr class="dtstart" title="2006-09-12T19:30:00+01:00">
Tuesday 12<br>7:30
</abbr>
–
<abbr class="dtend" title="2006-09-12T21:30:00+01:00">
9:30
</abbr>pm
</th>
which would solve your issue, but why should "Tuesday 12" be inside the
dtstart and not dtend?
Or is the original premise:
In the future one could imagine a CSS rule and perhaps a CSS
property or two that would automatically transform and present
[...] ISO8601 dates from 'title' attributes of <abbr> elements
into whatever datetime format the user preferred
rather than my mark-up, at fault?
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>
Free Our Data: <http://www.freeourdata.org.uk>
More information about the microformats-discuss
mailing list