Pixelpost

Authentic Photoblog Flavour

Relative Datetime v0.6

 
Download (1.5 KB)

Developer Description

This addon will format your photos post date / time to use relative dates. Instead of date / times like 01/22/2008 02:33:12, etc. Your post dates will look like: Just Now, 5 minutes ago, Yesterday, Last Week, etc.

DOCUMENTATION

Use the following template tag within your image_template.html file.

  • Template tag:
    • <IMAGE_DATETIME_RELATIVE>

Simply replace the current <IMAGE_DATETIME> template tag (if your template currently uses it) with <IMAGE_DATETIME_RELATIVE>.

DO YOUR PART

VERSION HISTORY

  • Key:

    • [!]Important
    • [+]New
    • [-]Fixed error
    • [*]Changes
  • .06:

    • [+] Added support for Months. (Instead of: 24 weeks ago, you'll now see: 5 months ago.) If you prefer to see the weeks instead of months, use version 0.5.
  • .05:
    • [!] Initial release.

Older Versions

Write A Review

  1. Perfect 5
    Unknown 6 Years Ago Report as Spam

    So cool ! Thanks :)

  2. Perfect 5
    Unknown 6 Years Ago Report as Spam

    This addon is very well written and extremely useful for use with Pixelpost or other PHP projects. Highly recommended.