SPIP

[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [vi] [zh] Espace de traduction

Download

|date_relative

August 2010 — updated on : July 2010

All the versions of this article:


The |date_relative filter, when applied to any #DATE... type tag, will display information associated with the tag depending on the context date.

Example: the current date and time is Friday 25th September 2009 14:20. An article was recently published on Wednesday 23rd September 2009 at 10:20.

in this circumstance will return:
2 days and 4 hours ago.

On the other hand, if your site is configured to display articles regardless of nominated publication date, then an article "published" on Sunday 27th September 2009 at 18:20 will display:
In 2 days and 4 hours.


Show the template of this page Site powered by SPIP | Translation area | Private area