News for hackers. Stuff that matters.

When was '2 weeks ago' and did it come before or after '2 weeks ago'?

Why are timestamps increasingly being replaced by vaguely worded junk?

This has been happening for a long time, but today Github told me that when filtering issues based on creation time, "Date formatting must follow the ISO8601 standard". This is the hill they die on, I guess... Except, the reason I was looking up the syntax for this in the first place was because the creation times are displayed in such a useless manner.

I don't know, it just seems like for anything older than a day it's easier to think about when things happened, not how long ago something happened. And then the resolution degrades to useless levels for anything older than 'today' anyway.

( 46 comments | 7 points | on HN )
Re:When was '2 weeks ago' and did it come before or after '2... by codegeek on Sunday June 25, 2023 @03:38PM (#36471817)
I think the sweet spot should be showing the actual date/time if > 24 hours. For rest, you could do "6 hours ago" or "15 mins ago". Then show a tooltip on the "6 hours ago" to show actual date/timestamp. THis is a better user experience in my opinion.
Re:When was '2 weeks ago' and did it come before or after '2... by mvdtnz on Sunday June 25, 2023 @05:35PM (#36472825)
Why? How is "6 minutes ago" more useful than "9:27am today" or "2023-06-26 09:23"? For one thing it becomes out of date and inaccurate within 1 minute of the page loading. Do I have to memorise the loading time of each of my tabs so I know how to put timestamps into context?
Re:When was '2 weeks ago' and did it come before or after '2... by jcul on Sunday June 25, 2023 @06:10PM (#36473125)
It can be useful when frequently working across many timezones, working on remote systems etc.

While I generally prefer absolute timestamps, sometimes "1 hour ago" or lets meet in "30 mins" is easier and skips the mental gymnastics of coverting timezones.

Re:When was '2 weeks ago' and did it come before or after '2... by masukomi on Monday June 26, 2023 @07:11AM (#36478197)
9:27 assumes i

a) have any clue what time it is now b) assumes that an arbitrary time designation is more important to me than the relative distance.

When talking about stuff today, as a general statement "a" is almost always false for me and "b" is false nearly 100% of the time.

I don't care that it was at 9:27am I care how long ago it was. "Was this the thing i just attempted or the prior attempt?" "did this happen before or after that conversation we had like 20 minutes ago?"

"a" means i have to do an additional lookup. It doesn't matter that it's easy, it's an additional lookup. "b" means that i also have to do math, and i have a really really hard time with mental math (dyscalculia is a real thing).

and, as others have pointed out. Time zones suck. I'm constantly coming up against UIs that refuse to tell me the time in my time zone when i need it, or in "their" time zone when I need it.

"is that actually their 9:27 am, and thus my 2:27pm or is it _my_ 9:27am?" is the type of question I'm constantly asking. And then it's followed by "oh but [person x] is in a time zone one hour off so really that would be ...8:27 or 1:27?"

Re:When was '2 weeks ago' and did it come before or after '2... by djur on Sunday June 25, 2023 @08:26PM (#36474165)
I generally find the difference between "1 week ago", "1 month ago", and "1 year ago" (and "10 years ago", for that matter) way more useful than "3 hours ago" versus "5 hours ago". I'd rather see precise times for the current day than precise dates for the past.
Re:When was '2 weeks ago' and did it come before or after '2... by dave4420 on Sunday June 25, 2023 @03:30PM (#36471747)
Sometimes if you mouseover the vague time stamp you’ll get an ISO time stamp pop up. Doesn’t help if you’re on your phone, of course.

I gotta say though, personally I can never remember what day of the month it is, so having it say “X days ago” is a big help to me.

Re:When was '2 weeks ago' and did it come before or after '2... by Larrikin on Sunday June 25, 2023 @04:29PM (#36472277)
Is there anytime where you would be seeing a comment's timestamp on a device where the actual date isn't visible also or a single swipe away?

I rarely remember the date offhand but whenever I need to care I have two devices on my body and another four or five devices within feet of me with the date down the second.

Re:When was '2 weeks ago' and did it come before or after '2... by dave4420 on Sunday June 25, 2023 @05:50PM (#36472981)
No. But it’s easier not to have to.

When I do need an exact time stamp, it’s easy enough to mouseover.

Re:When was '2 weeks ago' and did it come before or after '2... by add-sub-mul-div on Sunday June 25, 2023 @06:03PM (#36473085)
It also doesn't help if you're looking at a screen shot.
Re:When was '2 weeks ago' and did it come before or after '2... by qwery on Sunday June 25, 2023 @07:19PM (#36473680)
I was about halfway down a page literally filled with '2 weeks ago' issues, mousing over each one when I went and looked up the search syntax. Fun fact, I also found I couldn't select the whole info line (#issue date author) properly, no doubt due to some shenanigans with implementing the timestamp obfuscation system.

In cases where I want to compare today/now with some event time, using a relative format makes a lot of sense.

Re:When was '2 weeks ago' and did it come before or after '2... by bloak on Sunday June 25, 2023 @03:25PM (#36471709)
> Why are timestamps increasingly being replaced by vaguely worded junk?

I don't know but it's clearly part of the general trend for everything to get worse. Fortunately, many of the web sites that show the time as vaguely worded junk will also show a more precise indication if you mouse-over. So I think the end of the world is still a few years off.

Re:When was '2 weeks ago' and did it come before or after '2... by gala8y on Sunday June 25, 2023 @03:59PM (#36471990)
OT: Not to mention inability to reference / access any older pages in infinite scroll - old web long gone (a long time ago).

> end of the world is still a few years off.

I don't get a timestamp with mouse-over.

Re:When was '2 weeks ago' and did it come before or after '2... by qwery on Sunday June 25, 2023 @07:46PM (#36473871)
I don't want to complain about being thrown the occasional bone, but the fact that they allow you to view the actual absolute timestamp is also kind of infuriating -- I mean it's right there. I know you have it!

`End of the world: more than a year away`

Re:When was '2 weeks ago' and did it come before or after '2... by thesuperbigfrog on Sunday June 25, 2023 @03:19PM (#36471656)
>> Why are timestamps increasingly being replaced by vaguely worded junk?

It seems like an attempt to be more user relateable, but as you point out, it is less precise than an ISO 8601-formatted timestamp.

Ideally there should be an option to just use timestamps instead of 'vague relative time'.

Re:When was '2 weeks ago' and did it come before or after '2... by brudgers on Sunday June 25, 2023 @03:48PM (#36471909)
My wildass guess:

At the scale of GitHub, it probably makes business sense to bucket sort time stamps instead of performing a lookup for every record for every file.

Eliminating all the potential latency due to cache invalidation probably improves user experience as well. I mean if a user experienced four minutes to retrieve dates because of network issues it would be bad even if it only happened to them only once every few months.

Also, the primary use case for git is to use the latest files and whether the latest file was from 205.6811 hours ago or 305.1342 hours ago is not a statistically meaningful use case for a tool like a webpage representing a git repository.

I mean sure it matters in edge cases for git, but a user can always look at their local repository.

My apologies to anyone who feels I am not adequately outraged, offended, or angered by vague dates. GitHub is amazing and better than any practical engineering alternative operating at a similar scale.

YMMV, good luck.

Re:When was '2 weeks ago' and did it come before or after '2... by p0ppe on Sunday June 25, 2023 @05:33PM (#36472807)
No need to do it in the backend and worry about caching. Just output iso-dates and have them converted in the frontend.
Re:When was '2 weeks ago' and did it come before or after '2... by brudgers on Sunday June 25, 2023 @10:31PM (#36475050)
“worry about caching”

At scale, caching is typically a principle engineering concern.

Re:When was '2 weeks ago' and did it come before or after '2... by fwlr on Sunday June 25, 2023 @04:05PM (#36472056)
Relative timestamps really are more user-friendly than ISO 8601 for 90% of the use-cases of 90% of users. I share your sentiments about them but objectively speaking we are in the minority, even for ostensibly technical-focused sites like GitHub.
Re:When was '2 weeks ago' and did it come before or after '2... by mlyle on Sunday June 25, 2023 @04:21PM (#36472189)
I'm much happier with relative timestamps-- as long as I can hover over and get a real timestamp (preferably '8601) I'm good. 70%+ of the time-- and 100% of the time when I'm most in a rush-- I just want an order-of-magnitude relative time: is this seconds, minutes, hours, days, weeks, months, or years?

If I'm going to be looking at a timestamp, I'm going to be thinking. Often times what I'll be comparing to is-- (or might be, because of ambiguity)-- a local time. Hovering my mouse is not a dealbreaker.

Re:When was '2 weeks ago' and did it come before or after '2... by fwlr on Sunday June 25, 2023 @04:28PM (#36472271)
I’ll admit, “Last commit X days ago” is super useful for quickly evaluating GitHub repos.
Re:When was '2 weeks ago' and did it come before or after '2... by nitwit005 on Sunday June 25, 2023 @05:03PM (#36472567)
But you trade being slightly more useful, in exchange for creating real problems for the people who need to know the real time.

At least let people mouse over, or click on the time, and get a real timestamp.

Some of these tools seem to be copying from designs intended for social media websites, instead of something work related.

Re:When was '2 weeks ago' and did it come before or after '2... by mvdtnz on Sunday June 25, 2023 @05:39PM (#36472866)
"Two weeks ago" and "ISO 8601" are not the only options. I prefer a user-readable date-time like "June 26, 9:35am" or "Yesterday at 2:12pm". They are best much more precise than "Yesterday" or "1 hour ago".
Re:When was '2 weeks ago' and did it come before or after '2... by drekipus on Sunday June 25, 2023 @06:16PM (#36473197)
"1 hour ago"

As an Australian this is actually a lot better for me.

If there's a time like "10:43am" I have no idea whether that's UTC , my timezone, or some American timezone.

You could argue that they should put the timezone there, but they don't, or they will but only for American TZ.

and I don't want to dig around my profile settings to find it.

Even hacker News is relative. I know that I am responding 34 minutes after your post.

Re:When was '2 weeks ago' and did it come before or after '2... by mvdtnz on Sunday June 25, 2023 @09:19PM (#36474559)
I assume if you're displaying a time to me with no timezone specified then my system timezone is being used. If I find a system that's displaying a timezone-less time that's not my system time zone I won't be using that system much longer. But nowadays this is exceedingly rare.

I am in New Zealand so I understand your perspective, I just don't think it's a major problem.

Re:When was '2 weeks ago' and did it come before or after '2... by xg15 on Sunday June 25, 2023 @05:45PM (#36472927)
> Relative timestamps really are more user-friendly than ISO 8601 for 90% of the use-cases of 90% of users.

Do you have data to back that up?

Re:When was '2 weeks ago' and did it come before or after '2... by qwery on Sunday June 25, 2023 @07:09PM (#36473604)
I assume that that is a factor (although I'm not sure about the significance), and I'm more or less tolerant of these things depending on context. That Github was the particular instance that motivated the post was not a coincidence.

I'm not calling for ISO 8601 by force (not seriously anyway) and it's not just relative vs. absolute. Relative timestamps must be a better choice for some use cases. But the horrors I'm describing are not just relative timestamps, they're non-linearly quantised (probably not a strictly correct term), obfuscated, and relative.

Re:When was '2 weeks ago' and did it come before or after '2... by greatgib on Monday June 26, 2023 @04:30AM (#36477186)
You just dropped a random number that is not backed by any research, no?

Because most people I know, even en especially older persons, if you say 2 weeks ago, they will look at their calendar and count days to see what day it was exactly.

Let's suppose I tell you: you will have a free concert in 3 weeks. First you will want to know the exact day, then you will still want the correct date because otherwise you don't know if it is in may or in June, Beginning or end of the month,...

Re:When was '2 weeks ago' and did it come before or after '2... by fwlr on Monday June 26, 2023 @06:51AM (#36478065)
Not backed by research, but the number isn’t random. I based it on the time I was building a site for a company. There was a discussion about relative vs absolute timestamps, so for about a week I was asking people (friends, family, friends’ families, cab drivers, baristas, etc) which they found more useful. I’ll see if I can find the notebook where I tallied up the results because as I recall it was indeed very close to 90%.
Re:When was '2 weeks ago' and did it come before or after '2... by PaulHoule on Sunday June 25, 2023 @04:09PM (#36472080)
I wrote my first routine to display relative times for web applications around 2001.

A lot of times I just want to know it was "3 days ago" and the cognitive load of doing date arithmetic in my head is a lot, and I frequently do it wrong.

Re:When was '2 weeks ago' and did it come before or after '2... by myself248 on Sunday June 25, 2023 @05:09PM (#36472620)
But there's no reason you can't just show both.
Re:When was '2 weeks ago' and did it come before or after '2... by add-sub-mul-div on Sunday June 25, 2023 @05:50PM (#36472978)
Ever since I noticed that Reddit or some other crappy site considered 1 year plus 364 days to be "1 year ago" its been a lot of extra cognitive load for me to see these things and not know if I can trust them to be meaningful.
Re:When was '2 weeks ago' and did it come before or after '2... by justsomehnguy on Sunday June 25, 2023 @04:12PM (#36472118)
It's quite simple, it's another thing what the self-proclaimed Internet beauty connosiers (shitheads with an inflated ego but sadly with a working Notepad.exe) decided to be 'ugly' and started a holy crusade to eliminate it.
Re:When was '2 weeks ago' and did it come before or after '2... by netsharc on Sunday June 25, 2023 @04:44PM (#36472403)
This post is from "1 hour ago" as I write this comment...

I've noticed on Instagram, if someone's been offline for 1 hour 59 minutes, it says "Last seen 1 hour ago", which for my definition is not 1 hour ago.

For 2 weeks that's a lot of range (14 to 20 days), it seems like it would make sense to say "2 weeks ago" for e.g. 14-16 days, 17/18/19 days ago, and "almost 3 weeks ago" on day 20...

Re:When was '2 weeks ago' and did it come before or after '2... by parasti on Sunday June 25, 2023 @05:38PM (#36472850)
For real, this is the bane of my existence. There's probably some engagement metric that is being addressed by this, but to me it looks like programmer incompetence. 1 year 11 months ago getting rounded down to 1 year ago is not useful.
Re:When was '2 weeks ago' and did it come before or after '2... by efxhoy on Sunday June 25, 2023 @04:55PM (#36472500)
I agree. I think the rare frustration when you want the timestamp greatly outweighs the much more frequent but ever so slight cognitive convenience from the “X time ago” format.
Re:When was '2 weeks ago' and did it come before or after '2... by TillE on Sunday June 25, 2023 @04:56PM (#36472507)
I think it's an example of cargo cult design, where you go with relative times because everyone else is doing it, and you don't really think about usability.

Totally agree that once it's past "X days ago", it's utter garbage. It's so stupid to scroll through Twitch vods and see a dozen videos that are "last month".

Re:When was '2 weeks ago' and did it come before or after '2... by dzhiurgis on Sunday June 25, 2023 @05:37PM (#36472843)
That's a shallow dismissal. Maybe everyone else is doing it because people love it. Same with large SUVs, non-removable batteries and thin laptops.
Re:When was '2 weeks ago' and did it come before or after '2... by searealist on Sunday June 25, 2023 @07:28PM (#36473739)
They gave a concrete example where where it is bad.
Re:When was '2 weeks ago' and did it come before or after '2... by saurik on Sunday June 25, 2023 @10:02PM (#36474861)
Or, maybe people think they love this stuff, because the manufacturers told them to? The large SUV example being on your list was pretty telling...

https://www.distilled.earth/p/the-loophole-that-made-cars-in...

Re:When was '2 weeks ago' and did it come before or after '2... by dzhiurgis on Monday June 26, 2023 @12:36AM (#36475774)
Mots SUVs sold are compacts and crossovers, not truck based monsters
Re:When was '2 weeks ago' and did it come before or after '2... by myself248 on Sunday June 25, 2023 @05:08PM (#36472614)
Oh my god, fuck these things so much.

Most of them, mercifully, will show the whole date if moused-over. But that's still an awful user experience for exactly the case you describe.

I can see a use-case for both, so why not simply show both?

Re:When was '2 weeks ago' and did it come before or after '2... by ChrisArchitect on Sunday June 25, 2023 @06:12PM (#36473147)
Ask HN:
Re:When was '2 weeks ago' and did it come before or after '2... by glaucon on Sunday June 25, 2023 @06:23PM (#36473254)
I assumed this stuff leaked out of Social Media look and feel where the vaguest indication of date is sufficient, I loath it.

FWIW my default would be "sort of 8601" (2023-06-26 15:03) and there could be a settings option for other styles, including "Opaque Dates ?" to provide the "seven months ago" style.

Re:When was '2 weeks ago' and did it come before or after '2... by RFV_ on Sunday June 25, 2023 @07:28PM (#36473737)
no. it did not come before or after. it came at excactly '2 weeks ago', which is neither before nor after.
Re:When was '2 weeks ago' and did it come before or after '2... by solarkraft on Sunday June 25, 2023 @08:24PM (#36474149)
I generally like this for quick reference. However I demand that a hover will reveal the actual time stamp.
Re:When was '2 weeks ago' and did it come before or after '2... by em-bee on Sunday June 25, 2023 @11:37PM (#36475483)
the problem where this gets in the way for me is that i can't tell if a tab i opened is current or if it is already old.

hacker news is an example of that. it tells me that this post was submitted 5 hours ago. and if i leave the tab open and look at it tomorrow, it will still say it was 5 hours ago. it it would instead show the actual time, i'd know without reloading that this is already a day old.