The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

how do I calculate X years X weeks X days ago? (4 posts)

  1. bubazoo
    Posted 9 years ago #

    on some blogs, I've noticed they've had code like

    "Posted 3 weeks, 6 days ago by blablapersonname"

    how is that calculated exactally?

  2. bubazoo
    Posted 9 years ago #

    or is there a tag or plugin that would do this for me?

    its for my entries. thanks

  3. Lester Chan
    Posted 9 years ago #

    I got a plugin which is similar but it is not exact.

    It will be something like
    19th November 2006 (1 Week Ago)
    26th November 2006 (Yesterday)
    27th November 2006 (Today)

    There is a plugin that does the exact thing. I forgot the name. might want to search it in wp-plugins.net

  4. difa
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic