This is a feature request for distance-defined dates. The idea is that certain elements of a timestamp are more or less relevant for something that occurred recently or a long time ago.
For example, something that happened an hour ago would be (as time went on):
1 hour ago
22 hours ago (up to 23 hours)
Yesterday at 7:02pm (up to 2 days)
Wednesday at 7:02pm (up to 1-2 weeks)
Wednesday, November 24 (up to 6 months)
November 24, 2010
This isn't an original idea -- I've seen it at a few places -- but I think it would be a small usability improvement.
Comments
Comment #1
dre2phresh commentedI'm also looking for this! Any luck yet?
Comment #2
neopoet commentedNot yet. Something like this exists now in private messages, but it's a bit of a hack (we should suggest to them that it would be simpler to rely on the date module for this, rather than implementing it internally).
Comment #3
patcon commentedsubscribe
Comment #4
karens commentedThere is a formatter called the 'interval' format, you see it on the Display Fields screen. This should display a date field this way.
Comment #6
Yuri commentedIn views there is a custom date format (on the date field configuration page), but it only allows for one line of custome php date format, with a reference to http://us.php.net/manual/en/function.date.php. a recent comment shows this code:
How could i insert this function in the date field format?
Comment #7
Yuri commentedComment #8
karens commentedAs noted in #4, there is already a formatter for this, on both the Display Fields screen and in Views. In Views it looks like this: