[uf-discuss] Parsing dates in preferred format
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 :
><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
>That displays as:
>By auto-converting the ISO8601 dates to my preferred format, that
>would display as:
>September 12, 2006 7:30pm–September 12, 2006 9:30pm
>I prefer the original, and I suspect this is more the norm than the
Interesting - that's one of my pages.
Can you suggest a better way to mark-up the event?
I could use:
<abbr class="dtstart" title="2006-09-12T19:30:00+01:00">
<abbr class="dtend" title="2006-09-12T21:30:00+01:00">
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?
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>
Free Our Data: <http://www.freeourdata.org.uk>
More information about the microformats-discuss