[uf-discuss] RE: Microformats and RDFa not as far apart as previously thought

Belov, Charles Charles.Belov at sfmta.com
Fri Jun 27 16:41:27 PDT 2008


> 
> Message: 3
> Date: Thu, 26 Jun 2008 11:16:19 -0700
> From: Guillaume Lebleu <guillaume at lebleu.org>
> Subject: Re: [uf-discuss] RE: Microformats and RDFa not as far apart
> 	as	previously thought
> To: Microformats Discuss <microformats-discuss at microformats.org>
> Message-ID: <4863DCF3.4010709 at lebleu.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Belov, Charles wrote:
>> I'd suggest modifying that to not require the computer to parse the 
>> date. Something like:
>> <span class="dstartm" lang="en-us">October</span> <span 
>> class="dstartd">5</span>, <span class="dstarty">2004</span>
>>   
> +1: DRY-, POSH- and "humans first"-compatible IMO.
> 
> Maybe the following may be POSHer and backward-compatible with the
existing dstart class name convention?
> 
> <span class="dtstart" lang="en-us"><span class="month">October</span>
<span class="day">5</span>, <span class="year">2004</span></span>
> 

By George, I think you've got it! 

Then there is the time issue, including 24-hour vs. 12-hour.  So perhaps
(with all characters outside the inner spans being optional for human
readability):

<span class="dtstart" lang="en-us"><span class="month">October</span>
<span class="day">5</span>, <span class="year">2004</span>, <span
class="hhmm">1740</span> GMT<span class="tz">-7</span></span>

would be equivalent to:

<span class="dtstart" lang="en-us"><span class="month">October</span>
<span class="day">5</span>, <span class="year">2004</span>, <span
class="hhmmampm">5:40 a.m.</span>  <span
class="tzabbr">PDT</span></span>

noting that hhmmampm might be expressed with or without the m, or with n
for noon (12n) or midnight (12m). 

Hope this helps,
Charles "Chas" Belov
SFMTA Webmaster



More information about the microformats-discuss mailing list