Display date like "2 days, 1 hour".

Please tell me how to display date like this 2 days, 1 hour which is fetch from database.Please give me answer as possible as soon.....

View Replies:
jvansanten replied on at Permalink Reply
More information is needed to respond to your question.

This appears to be not a single value, but a value calculated from 2 other values. Is this accurate?

The values can be maintained as UNIX timestamps or MySQL date/time values. Do you know which they are?
JohntheFish replied on at Permalink Reply
Friendly time formatting is included in my Last Updated addon (free).

This provides the last updated time of a page with intelligent calculation and some friendly formatting. If you are php literate the formatting is provided in a library that can be used by other code.

The addon also provides a symbol "FRIENDLY_DATE" for Magic Data (not free, but worth every penny :) ).