Semantically display BC / BCE time in HTML5

I am looking for a solution for the semantic representation of dates in HTML5. In accordance with the new specifications, you can now specify a date without a day, month, etc., For example:

<time datetime="2011">Last year</time> 

This article also demonstrates some useful examples. But there is still no mention of dates in the BC / BCE period. Any semantic solution?

+4
source share
2 answers

The time element is not intended for dates that cannot be represented in the Gregorian calendar , therefore the datetime attribute does not have support or a standard for BCE years. This seems to be a deliberate limitation due to complications in supporting the datetime browser and adopting the Gregorian calendar.

+2
source

HTML5, as currently indicated, does not allow dates up to year 0.

The HTML5 date and time format is a subset of the ISO 8601 datetime format . ISO 8601 allows BC / BCE dates written simply with a minus prefix, for example. -86 .

But in HTML5, the minus prefix is ​​not allowed. I do not know if this is deliberate or what excuse.

One possible way to deal with this is to simply use ISO 8601 dates with a time element, I think, ignoring HTML5's ban on negative values.

If you are serious about this, you can also post a comment against the HTML specification.

0
source

All Articles