My first (very simple) addon - Simpledate outputs the current date or the page’s last modified date using PHP formatting options.
Simpledate has two functions:
{mojo:simpledate:get}simply returns the current date.
{mojo:simpledate:get_last_modified}returns the page’s last modified date.
Format parameter using PHP formatting options:
{mojo:simpledate:get format="Y-m-d"}will return something like “2010-08-01”
If no format parameter is used, Simpledate will default to “F j Y” (e.g. August 1 2010).
Offset parameter in seconds:
{mojo:simpledate:get offset="172800"}will add 2 days (60 * 60 * 24 * 2) to the current date. Prefix the seconds with a negative sign to subtract time, e.g., offset=”-172800”.
Download and documentation:
http://github.com/aaronfowler/mojo-simpledate
-Aaron