Possible use of time here, could be overboard, and I can't recall right now if datetime attribute can do time-ago (I think it can).

http://api.drupal.org/api/drupal/modules--forum--forum-submitted.tpl.php/7

Comments

cosmicdreams’s picture

No I don't think so.

According to http://dev.w3.org/html5/spec/Overview.html#vaguer-moments-in-time , the html 5 field for time data does not natively support relative times. But we could easily render relative times based on the hard coded timestamp that is apart of the html 5 standard.

Jeff Burnz’s picture

Status: Active » Closed (works as designed)

Right, I also looked up the spec:

The time element is not intended for encoding times for which a precise date or time cannot be established. For example, it would be inappropriate for encoding times like "one millisecond after the big bang", "the early part of the Jurassic period", or "a winter around 250 BCE".
Jeff Burnz’s picture

Status: Closed (works as designed) » Active

I'm opening this again, we need more info on datetime attribute - can we pass a valid date time string to datetime and write whatever we want in the time element? Apologies for the noise, brain not engaged this morning.

aspilicious’s picture

Status: Active » Closed (works as designed)

datetime/time is just for "times". We can't use it in this case.