WordPress.org

Forums

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

  1. bubazoo
    Member
    Posted 8 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
    Member
    Posted 8 years ago #

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

    its for my entries. thanks

  3. Lester Chan
    Member
    Posted 8 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)
    Etc

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

  4. difa
    Member
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags