46

It always throws me off whenever I see a question that was "asked 1 year ago" and then realize it was actually asked nearly 2 years ago.

For example:

enter image description here

When x is greater than 1 year, can we round it to the nearest integer?

Or else include the months:

asked  1 year and 11 months ago
17
  • 6
    Not just years. Also hours etc. And there's "yesterday", which means 24 to 47 hours ago. Anyway, it threw me off at first, but now I'm used to it. There are aspects about this site that bother me more.
    – Mr Lister
    Commented Apr 7, 2017 at 6:12
  • 26
    It always throws me off ... Seriously ? Me, I think it's a member of the set of SO-world problems which itself is a very small subset of first-world problems. Commented Apr 7, 2017 at 7:19
  • 12
    If it is rounded to the nearest integer you just know someone is going to be bothered by the fact that it states 2 years ago when it is in fact slightly less than 2 years. If it needs fixing, make it accurate.
    – Gimby
    Commented Apr 7, 2017 at 8:40
  • 12
    I think I had the same problem in the beginning. I just started ignoring the "1 year ago" information and I always look at the exact date instead.
    – Sulthan
    Commented Apr 7, 2017 at 17:29
  • 5
    The feature was added--I can only guess--because someone thought it would be more useful than just looking at the standard formatted time-stamp. If it's ignored then just get rid of the feature... but apparently it remains because an alternate time representation is still useful... and so is still subject to improvement. High Performance Mark's comments are completely useless since at some level the same could be said about the entire Stack Exchange community. Is there a badge for having high reputation and still spamming with completely unhelpful comments?
    – C Perkins
    Commented Apr 7, 2017 at 18:39
  • What do you mean round to the nearest integer? 1.5 years ago is not an integer value.
    – TylerH
    Commented Apr 7, 2017 at 19:51
  • I don't think the thing is really that necessary to have two different locations that tell you two different times. This value on this question just says "today" but below the post in your user card it says "asked 15 hours ago". Why not just put the exact timestamp in the card and at the top?
    – TylerH
    Commented Apr 7, 2017 at 19:52
  • 2
    @HighPerformanceMark is included on those the use of backticks for non-code?
    – Braiam
    Commented Apr 7, 2017 at 21:32
  • 4
    just have it say "asked a looooooooong time ago."
    – Kevin B
    Commented Apr 7, 2017 at 21:58
  • 2
    Why is the same information stated twice anyway? Just remove it from the sidebar.
    – Emil Laine
    Commented Apr 7, 2017 at 22:29
  • @All: `heck yes' Commented Apr 8, 2017 at 6:39
  • 3
    Whenever the number is less than some threshold (2? 3?) move to the next unit. ("400 days" is better than "1 year" or "2 years")
    – user2404501
    Commented Apr 9, 2017 at 1:18
  • 1
    Solution: "Over 1 year ago"
    – GolezTrol
    Commented Apr 9, 2017 at 17:49
  • "You've slept since this question was asked." Problem solved.
    – JeffC
    Commented Apr 10, 2017 at 0:17
  • The message is not accurate (and it misses by a long shot). It sounds like a bug rather than a feature request.
    – jww
    Commented Apr 10, 2017 at 3:59

2 Answers 2

10

Date formatting is vexing because of so many hidden traps like pluralization rules across languages which require special handling for many cases. That and the fact that we re-use common formatting code in multiple places, sometimes because of layout constraints (in some places, horizontal space is a premium).

That said, the existing issue was indeed annoying, and we already have translations in place for "X years, Y months ago", so I made the change. This also applies to a few other areas, e.g., Tag Wikis and certain Review Queues.

Months may still seem off by 1 if you really do the math (e.g., 1 year, 4 months and 28 days ago is still just 1 year, 4 months ago), but the purpose is to give a feel for the timeframe, and that should be the case now.

1
  • 1
    Yay! I never expected such a fast response. Thanks a lot! This will make it obvious at a glance how old the question is.
    – Suragch
    Commented Apr 10, 2017 at 15:05
28

Rather than rounding or cluttering it up with an exact number of months (or days!), I have an alternate suggestion.

If it is over one month from the yearly anniversary, change the text from "1 year ago" to "over 1 year ago".

This avoids the complaints that would come from people annoyed that 1.5 years gets rounded to 2.

9
  • 15
    "nearly 2 years ago" :D
    – Cœur
    Commented Apr 8, 2017 at 1:25
  • @Cœur basically kinda low-key two years ago...soon.
    – owlswipe
    Commented Apr 9, 2017 at 1:43
  • 7
    "more than 1 year ago and getting close, but not that close, to 2 years ago" Commented Apr 9, 2017 at 3:06
  • 14
    Use a bar to show how old it is. The bar should be in the shape of a tree. Obviously, the older the tree, the older the question. When you hover over the bar there should be an animation sawing off the tree and then a magnified view of the trunk - so you can count the rings. Commented Apr 9, 2017 at 17:28
  • 2
    Just change the text to "over 0 years ago". Problem solved.
    – GolezTrol
    Commented Apr 9, 2017 at 17:49
  • 1
    @GolezTrol a statement can be both truthful and unhelpful at the same time. I think we're trying to move in the direction of more helpful. Commented Apr 9, 2017 at 18:07
  • 2
    "This question was asked x years ago where 2 > x > 1."
    – JeffC
    Commented Apr 10, 2017 at 0:19
  • Why not using month part too? "1 year 11 months ago" makes sense for me. Honestly I didn't notice that "year" part, prefer directly viewing exact date instead (i.e. May 7 '15). Commented Apr 10, 2017 at 4:27
  • @TetsuyaYamamoto did you see the part about "cluttering it up with an exact number of months"? You should upvote the answer by Michael Stum which I just noticed. Commented Apr 10, 2017 at 13:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .