W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] <time>

From: Jim O'Donnell <jim@eatyourgreens.org.uk>
Date: Wed, 11 Mar 2009 22:13:57 +0000
Message-ID: <9F70AE3E-FF01-44AB-A45D-5BFAF0CB17FE@eatyourgreens.org.uk>

On 11 Mar 2009, at 08:54, Robert J Burns wrote:

>>
>>
>>> Authoring tools can be used to convert from other formats to  
>>> Gregorian.
>>
>> And in that regard, it should be very relevant to have a calendar  
>> attribute.
>
> Or reuse the RDFa datatype attribute with new calendar system  
> keywords.
>


I'm not sure that would work, or rather that you would need the  
complexity of RDFa for something as simple as a change of calendar.  
My example of a Julian date in 1732
<time calendar="Julian" datetime="1732-02-22">Feb. 11 1731</time>,
(from http://www.tei-c.org/Guidelines/P4/html/ref-DATE.html)
would then be, I think, in RDFa
<time datatype="GregorianDate" content="1732-02-22">Feb. 11 1731</time>
since datatype describes the format of the content attribute, which  
is always a proleptic Gregorian date. So you'd lose the semantic  
information that the marked-up date is in the Julian calendar.

I'm proposing that datetime accept ISO8601 dates as per the existing  
W3C datetime profile. ISO8601 dates may only use the Gregorian  
calendar. In addition, it would be useful, but not essential, in  
describing the semantics of historical dates to have an attribute, as  
per TEI, identifying the calendar in use in the text itself. That  
shouldn't add any extra load to datetime parsers - they only need to  
be able to understand Gregorian ISO8601 dates.

Expanding the datetime or RDFa content attributes to contain non- 
Gregorian dates would be an unnecessary headache and, frankly, more  
trouble than it's worth.

Regards
Jim

Jim O'Donnell
jim at eatyourgreens.org.uk
http://eatyourgreens.org.uk
http://flickr.com/photos/eatyourgreens
http://twitter.com/pekingspring




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090311/d42672d1/attachment.htm>
Received on Wednesday, 11 March 2009 15:13:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT