News for hackers. Stuff that matters.
Re:Anything longer ago than yesterday should just say the ac... by djaro on Saturday October 14, 2023 @11:13AM (#37881113)
Especially because it becomes so imprecise. On YouTube, "1 year ago" can mean anywhere from 365 to 729 days. Anything between 1 and 2 years ago becomes "1 year ago".

So if I see two videos that were both uploaded "a year ago", it's impossible to know which is more recent without actually opening the videos, going to the description, and looking at the date.

Re:Anything longer ago than yesterday should just say the ac... by wlesieutre on Saturday October 14, 2023 @12:14PM (#37881682)
It’ll even round down when it’s the same day.

A video uploaded two years ago on 10/14/2021 would still tell you it was one year old if it were uploaded later in the day.

Re:Anything longer ago than yesterday should just say the ac... by Zambyte on Saturday October 14, 2023 @12:56PM (#37882130)
I found myself using an official YouTube client by accident recently, and it was so jarring to not be able to easily see when the video I was watching was uploaded.
Re:Anything longer ago than yesterday should just say the ac... by nfriedly on Saturday October 14, 2023 @02:10PM (#37882763)
It looks like there isn't a revanced patch for that yet, but I bet there will be soon.
Re:Anything longer ago than yesterday should just say the ac... by bbx on Saturday October 14, 2023 @01:03PM (#37882192)
Oh, I was going to mention that one. We're in October 2023. A video published in November 2021 should not say "1 year ago" but rather "Almost 2 years ago".
Re:Anything longer ago than yesterday should just say the ac... by dmd on Saturday October 14, 2023 @01:18PM (#37882336)
Even better would be for it to say "November 2021".
Re:Anything longer ago than yesterday should just say the ac... by typon on Saturday October 14, 2023 @01:22PM (#37882380)
Where's the fun in that? Let's design heuristics that work culturally in some parts of the world and be imprecise instead!
Re:Anything longer ago than yesterday should just say the ac... by Moru on Saturday October 14, 2023 @02:05PM (#37882725)
What's wrong with 2021-11-21T15:10:35 ?
Re:Anything longer ago than yesterday should just say the ac... by irrational on Saturday October 14, 2023 @02:33PM (#37882992)
I’d prefer it to use the month name.

Then it doesn’t matter if you write it

November 12 2012

2012 November 12

12 November 2012

2012 12 November

Etc.

Re:Anything longer ago than yesterday should just say the ac... by Moru on Saturday October 14, 2023 @02:48PM (#37883109)
It matters a lot if you try to sort on that column
Re:Anything longer ago than yesterday should just say the ac... by hanniabu on Saturday October 14, 2023 @03:10PM (#37883295)
We're talking about how it's displayed on the frontend, not how it's stored on the backend
Re:Anything longer ago than yesterday should just say the ac... by Brian_K_White on Saturday October 14, 2023 @04:20PM (#37883916)
One persons front end is another persons back end.
Re:Anything longer ago than yesterday should just say the ac... by salawat on Saturday October 14, 2023 @04:42PM (#37884090)
Especially if you're a proctologist.
Re:Anything longer ago than yesterday should just say the ac... by NewJazz on Saturday October 14, 2023 @05:16PM (#37884348)
We use YYYY-MM-DD HH:mm:as on the frontend because it sorts lexicographically, which is useful for interactive tables.
Re:Anything longer ago than yesterday should just say the ac... by hanniabu on Saturday October 14, 2023 @11:17PM (#37886557)
You can use data attributes for that
Re:Anything longer ago than yesterday should just say the ac... by graftak on Sunday October 15, 2023 @12:39AM (#37886927)
There’s no need to have the sort value and the display value to be the same to allow sorting.
Re:Anything longer ago than yesterday should just say the ac... by thephyber on Saturday October 14, 2023 @06:15PM (#37884745)
I think irrational’s point is that it’s trivial for any viewer, no matter the locality, to identify the date if there is no longer any ambiguity between date and month.
Re:Anything longer ago than yesterday should just say the ac... by _dain_ on Saturday October 14, 2023 @03:57PM (#37883737)
If you're not formatting a numerical date in the user's preferred date format then you're probably not localizing the month name to the user's language either.

How would 2012 ноябрь 12 feel to you?

Re:Anything longer ago than yesterday should just say the ac... by irrational on Saturday October 14, 2023 @07:10PM (#37885129)
Fine if I set Russian as my langague. I presume Youtube does localization.
Re:Anything longer ago than yesterday should just say the ac... by funcDropShadow on Sunday October 15, 2023 @04:44PM (#37893242)
So it could also take the preferred datetime format from the locale.
Re:Anything longer ago than yesterday should just say the ac... by barbazoo on Saturday October 14, 2023 @02:31PM (#37882967)
Time portion not being useful I'd say.
Re:Anything longer ago than yesterday should just say the ac... by dmd on Saturday October 14, 2023 @02:11PM (#37882779)
You mean 1637507435?
Re:Anything longer ago than yesterday should just say the ac... by pjscott on Saturday October 14, 2023 @07:02PM (#37885069)
Yes. As God intended when He created the heavens and the earth on January 1, 1970.
Re:Anything longer ago than yesterday should just say the ac... by layer8 on Saturday October 14, 2023 @02:28PM (#37882935)
The “T”, mostly.
Re:Anything longer ago than yesterday should just say the ac... by _dain_ on Saturday October 14, 2023 @02:51PM (#37883141)
The T makes it hard to visually parse. Whenever I try to read a timestamp using the T I have to scan it very carefully to see the date-time boundary. It'sWasWifWweWusedWaW"W"WtoWdenoteWwordWboundaries. I beg you people, use a space:

2021-11-21 15:10:35

See how much easier that is?

Re:Anything longer ago than yesterday should just say the ac... by MereInterest on Saturday October 14, 2023 @04:28PM (#37883984)
I agree on the 'T' being harder to read, but dislike the use of a space as it makes it ill-suited for use in a filename, and would allow word-wrapping to occur between the two sections. I'd much rather they had used an underscore instead of a 'T'.
Re:Anything longer ago than yesterday should just say the ac... by explaininjs on Saturday October 14, 2023 @05:32PM (#37884453)
Does windows not allow spaces or something? Unix variants seem fine with it.
Re:Anything longer ago than yesterday should just say the ac... by Dalewyn on Saturday October 14, 2023 @05:55PM (#37884600)
Programmers hate dealing with whitespace in strings with a burning passion.
Re:Anything longer ago than yesterday should just say the ac... by cratermoon on Saturday October 14, 2023 @07:25PM (#37885216)
Which I've always considered a weird anachronism, because 'space' isn't represented any differently than any other character, U+0020, unless you really want to get into the variety of "whitespace" elements. Same with newlines. It's all bytes.
Re:Anything longer ago than yesterday should just say the ac... by bigDinosaur on Saturday October 14, 2023 @06:01PM (#37884659)
Best to avoid spaces in file names even if the OS allows it (hell, you can put a new line in file names in Linux and I believe Mac OS but that's a terrible idea) because many programs will exhibit major error states if they end up processing these names due to assumptions about file names.
Re:Anything longer ago than yesterday should just say the ac... by OmegaMetor on Saturday October 14, 2023 @07:00PM (#37885047)
Macos allowing leading spaces in file/folder names made for some fun shenanigans on a school laptop with not great grep usage for blocking apps.
Re:Anything longer ago than yesterday should just say the ac... by devoutsalsa on Saturday October 14, 2023 @08:35PM (#37885663)
Best to combine a carriage return and tab.

    irb> puts “2021-11-21\r\t15:10:35”
    2021-11-21
        15:10:35
Re:Anything longer ago than yesterday should just say the ac... by krater23 on Sunday October 15, 2023 @03:38AM (#37887762)
And thats the reason why we should use more spaces and other special characters in filenames at every public used places. Thats the only way this bugs of lazy and stupid software developers getting fixed finally.
Re:Anything longer ago than yesterday should just say the ac... by bigDinosaur on Sunday October 15, 2023 @06:52AM (#37888669)
The principled stance is nice (and I agree with it generally) but sometimes you just need to get work done and not have to rely on trying to get some developer to fix something. Fully agreed though that it's lazy programming if an application can't deal with spaces.
Re:Anything longer ago than yesterday should just say the ac... by layer8 on Saturday October 14, 2023 @06:40PM (#37884917)
Windows does not allow the colon (":") in filenames, so you can't use the ISO date-time format in filenames anyway.
Re:Anything longer ago than yesterday should just say the ac... by Too on Sunday October 15, 2023 @01:31AM (#37887143)
The reason for avoiding spaces in file names is because of broken bash scripts, that don’t quote their arguments. Meaning about 99 out of 100 of them.

Not that avoiding such names solves the problem, it just makes the RCE vulnerability more latent.

Re:Anything longer ago than yesterday should just say the ac... by explaininjs on Sunday October 15, 2023 @01:56AM (#37887265)
Soundly like space-filled names would be a good best practice to force you to harden your scripts.
Re:Anything longer ago than yesterday should just say the ac... by _dain_ on Sunday October 15, 2023 @05:06AM (#37888193)
Microsoft deliberately named it "C:\Program Files" for exactly this reason.
Re:Anything longer ago than yesterday should just say the ac... by bmicraft on Sunday October 15, 2023 @08:28PM (#37894677)
That makes a surprising amount of sense actually
Re:Anything longer ago than yesterday should just say the ac... by funcDropShadow on Sunday October 15, 2023 @04:40PM (#37893216)
There exist non-breaking spaces for that exact reason.
Re:Anything longer ago than yesterday should just say the ac... by coding123 on Saturday October 14, 2023 @02:59PM (#37883211)
I prefer stardate
Re:Anything longer ago than yesterday should just say the ac... by DonHopkins on Saturday October 14, 2023 @04:11PM (#37883843)
I prefer parsecs since a long long time ago.

But I don't mean to pick a Star Wars / Star Trek fight: I'm bistellar, I love both of them!

Re:Anything longer ago than yesterday should just say the ac... by matja on Saturday October 14, 2023 @03:04PM (#37883256)
It's missing the timezone offset
Re:Anything longer ago than yesterday should just say the ac... by solardev on Saturday October 14, 2023 @03:27PM (#37883476)
It's missing the time zone offset /cry

I had to fix so many of these in various databases and frontends, lol

Re:Anything longer ago than yesterday should just say the ac... by Moru on Saturday October 14, 2023 @05:02PM (#37884246)
Not used for display purposes though :-)
Re:Anything longer ago than yesterday should just say the ac... by Karellen on Saturday October 14, 2023 @05:02PM (#37884249)
Why not just display it in the viewers' timezone?
Re:Anything longer ago than yesterday should just say the ac... by whirlwin on Saturday October 14, 2023 @05:41PM (#37884510)
How do you determine the viewer's timezone? A lot of apps try to find your timezone and it works fine until you travel abroad to a country with a different timezone.
Re:Anything longer ago than yesterday should just say the ac... by Karellen on Sunday October 15, 2023 @01:57PM (#37891864)
If your own user-agent or OS is working on the wrong timezone, that's your fault.

A website/app shouldn't have to find your timezone. It should use whatever one you've set. If you've set your timezone to one you didn't want, I'm not sure what you'd expect other software is meant to do about that. Fix your config.

Re:Anything longer ago than yesterday should just say the ac... by cratermoon on Saturday October 14, 2023 @07:29PM (#37885262)
Mostly because the browser Javascript API for Date is kind of crap for dealing with timezone info. There are some efforts to standardize on a better API, but it's going to take time to migrate.
Re:Anything longer ago than yesterday should just say the ac... by solardev on Saturday October 14, 2023 @09:45PM (#37886068)
How do you know what time zone to convert it FROM? Unlike epoch time (Unix time in milliseconds or seconds), "2021-11-21T15:10:35" doesn't automatically mean UTC without a "Z" or "+0" at the end. Without the time offset, that timestamp could be in any of the world's timezones. There's no way to know what moment in time was actually stored/meant.

Even if the user set it in one time zone, if we store it without a proper offset (and preferably a locale), we cannot properly account for the user traveling to another place, daylight savings time, government time adjustments, leap time, etc. These complexities compound off each other and make proper scheduling and debugging time issues really, REALLY hard later on.

In the twenty years or so that I've been doing web dev, datetime is probably the single biggest gotcha I've seen developers (including myself) stumble into. Part of this is because the standard JS datetime handling is atrocious compared to any other language I've worked in. It doesn't really natively handle time zones well, and well carelessly cast them back and forth if you're not careful.

Moment and Luxon can help with this, lighter libs like date-fns can too with the right extensions, but out of the box JS is going to fuck it up. I promise. Another choice is to just use milliseconds to store everything, and convert that to the user's timezone only at the time of display. Every timestamp is stored as an epoch, and every user has their time zone (not just offset, because of daylight savings) recorded with their profile. Doing those two simple things can avoid most of the landmines.

Re:Anything longer ago than yesterday should just say the ac... by Karellen on Sunday October 15, 2023 @01:55PM (#37891845)
Surely when someone posts content, that date/time that happens is captured by the server in epoch time.

And javascript natively converts epoch time to whatever timezone the client has set. If your user-agent (aka browser) is working on New York time, but you're in Tokyo, well, I'm not sure who else you have to blame but yourself if it shows you New York time when you didn't want that.

Re:Anything longer ago than yesterday should just say the ac... by HaZeust on Saturday October 14, 2023 @03:57PM (#37883742)
ISO 8601 is so annoying because timezone offsets are now no longer implied
Re:Anything longer ago than yesterday should just say the ac... by MereInterest on Saturday October 14, 2023 @04:25PM (#37883961)
I thought ISO 8601 allowed both unqualified times (e.g. "2023-10-14T19:21:45"), which are assumed to be local times, and qualified times (e.g. "2023-10-14T19:21:45−01:00"). Which one is used is then a choice left up to an individual program.
Re:Anything longer ago than yesterday should just say the ac... by the42thdoctor on Saturday October 14, 2023 @08:09PM (#37885517)
There, even better: 21/11/2021
Re:Anything longer ago than yesterday should just say the ac... by Jenda_ on Saturday October 14, 2023 @09:32PM (#37885993)
No: 1) unfortunately ambiguous with also widely used MM/DD/YYYY, 2) cannot be naturally sorted, the order does not go from the most significant to the least significant, especially when appended with HH:MM:SS.
Re:Anything longer ago than yesterday should just say the ac... by Moru on Sunday October 15, 2023 @01:31AM (#37887142)
Sorry, can't sort it in a column. I'm totally uninterested in everything that ever happened the first of january. I want to see the mails from last night on top.
Re:Anything longer ago than yesterday should just say the ac... by Horffupolde on Saturday October 14, 2023 @01:04PM (#37882201)
Use the URL
Re:Anything longer ago than yesterday should just say the ac... by bilekas on Saturday October 14, 2023 @01:12PM (#37882280)
I was just thinking about that the other day..
Re:Anything longer ago than yesterday should just say the ac... by Y_Y on Saturday October 14, 2023 @01:29PM (#37882425)
> File last modified: the other day

I think I'd be ok with this. I love the KDE fuzzy clock that says it's "about lunchtime", much more human than the examples people are decrying here.

Re:Anything longer ago than yesterday should just say the ac... by Moru on Saturday October 14, 2023 @02:07PM (#37882734)
My old phones' timer said "Less than 1 minute" instead of saying 59 seconds... Everything less than one minute whas "Less than 1 minute".
Re:Anything longer ago than yesterday should just say the ac... by joseda-hg on Saturday October 14, 2023 @06:26PM (#37884810)
I've seen that to avoid numbers that would go out of sync the moment they we're displayed, because it was better to be imprecise than to be wrong
Re:Anything longer ago than yesterday should just say the ac... by Moru on Sunday October 15, 2023 @01:33AM (#37887150)
But this was a timer on a normal phone. It's pretty useless to tell me it's less than one minute left until the eggs are done. Do I have time to do a bit more dishes or will the phone ring in one second? Who knows?
Re:Anything longer ago than yesterday should just say the ac... by bilekas on Saturday October 14, 2023 @02:19PM (#37882857)
Interesting you say that actually, I have been working on a folder synch implementation across samba with mac & win environments and the last modified times are not a reliable source of truth it seems. This fuzzy method would have been very useful as the exact minute of the modified file isn't critical.

In the end though we just used checksums, but over the wire the larger files take too long. This comment has given me an idea!

Re:Anything longer ago than yesterday should just say the ac... by kevincox on Saturday October 14, 2023 @04:49PM (#37884132)
Getting off topic but most sync systems do a quick comparison then a full one.

So for example check modified, inode number against the previous version. If they are all a match consider skipping the checksum. This way you can skip almost all checksums on an incremental transfer. You can have false-negatives but this can often be mitigated by occasionally doing a full rescan or similar.

Re:Anything longer ago than yesterday should just say the ac... by bilekas on Saturday October 14, 2023 @05:04PM (#37884264)
> So for example check modified, inode number against the previous version.

To be honest, I didn't even try this because the destination machine is Windows, I didnt think inode number had an equivalent in windows, but after googling, there might be a way.

Another great suggestion.

As for the full checksum, I went with a chunk size of the first and the last of the file, (the changes are very small, property based) but I don't think its as reliable.

Re:Anything longer ago than yesterday should just say the ac... by gsich on Saturday October 14, 2023 @02:26PM (#37882910)
As long as its configurable - all fine.
Re:Anything longer ago than yesterday should just say the ac... by jimmySixDOF on Saturday October 14, 2023 @02:54PM (#37883172)
Could even be personalized so the date appears as "the same weekend you and Charlie went out on the boat"
Re:Anything longer ago than yesterday should just say the ac... by LordShredda on Saturday October 14, 2023 @03:19PM (#37883385)
Funnily enough google collects enough data for that to be possible
Re:Anything longer ago than yesterday should just say the ac... by Freedom2 on Saturday October 14, 2023 @11:36PM (#37886641)
That's precisely the joke, why bother restating it?
Re:Anything longer ago than yesterday should just say the ac... by Brian_K_White on Saturday October 14, 2023 @04:58PM (#37884217)
But of course "lunchtime" is a completely meaningless term for me.

1 - I rarely eat a meal in the middle of my day. In fact I usually only eat once, so is that one meal lunch? or breakfast? or dinner? or what ??

2 - My day not only isn't the same as yours, it isn't even the same from day to day, so even if I agreed to call my one meal lunch instead of dinner, it does not come at the same time as yours does, and does not even come at the same time from day to day, and does not even come at the same time relative to when I am awake let alone the absoluet time.

It's inconsiderate to think this is reasonable for everyone else because it's reasonable for you. It's like how kids and the untravelled and otherwise ignorant presume everyone else's life is exactly the same as theirs.

I could translate of course, because of course I know what it means for probably the majority of everyone else, but why should I have to do that? This whole topic is about convenience and meaning, and this would be inconvenient and of only arbitrary meaning to me. It would be like calling it "triangle time" sure, I could just know that that means around noon. Why should my interface require me to translate from markers that are meaningful to someone else's life but not to mine?

A worse example just to show what's so wrong would be like calling sunday "church day". Or sunday afternoon "right after church". That would be not only inconsiderate but downright offensive. For a lot of people that would be perfectly fine and some of them would even fail to see why that should be a problem for anyone.

And the offense isn't just mentioning a religion, it's the assumption, the turning anyone else into the exception, when they are not an exception, they are equal.

Re:Anything longer ago than yesterday should just say the ac... by malfist on Saturday October 14, 2023 @05:03PM (#37884260)
If the thought of a clock that says "about lunch time" sends you into a seven paragraph manifesto about the evils of the clock.....perhaps you should just not use it.
Re:Anything longer ago than yesterday should just say the ac... by Brian_K_White on Saturday October 14, 2023 @07:04PM (#37885083)
Exhibit A
Re:Anything longer ago than yesterday should just say the ac... by Y_Y on Saturday October 14, 2023 @07:26PM (#37885229)
Would you still be upset if I told you it has a hobbit setting where you get times like "second breakfast" and "elevenses". I'm sure you're a cool person and I don't want to denigrate your lifestyle, but the thing I'm talking about is a humorous desktop widget on an eopen-source desktop. You are certainly not obliged to use it, I'm fact you could even send in a patch that represents you - and have "only meal of the day time - ish" or "time to not attend a religious service".
Re:Anything longer ago than yesterday should just say the ac... by Brian_K_White on Saturday October 14, 2023 @07:51PM (#37885398)
If only I had explained the purpose of the church example was to illustrate with a stronger example that's merely further along the same dimension... If only I had explained anything at all instead of just saying I hate some idea for no unpackable explicable reason...
Re:Anything longer ago than yesterday should just say the ac... by marktani on Saturday October 14, 2023 @05:20PM (#37884377)
> I was just thinking about that on 2023-10-10

FTFY

Re:Anything longer ago than yesterday should just say the ac... by BD103 on Saturday October 14, 2023 @01:50PM (#37882599)
Not to mention, it is a lot easier to program a function formatting the text to exact dates than writing a function that estimates how long ago it was.
Re:Anything longer ago than yesterday should just say the ac... by o11c on Saturday October 14, 2023 @03:04PM (#37883250)
The imprecision could be fixed by forbidding the first digit from being 1, switching to a lower unit instead. So up to 120 seconds ago, then up to 120 minutes ago, then up to 48 hours ago, then up to ~61 days ago (ick, months are evil), then up to 24 months ago.

When such relative dates are in a list it's generally tolerable. The failure to update is far more irritating, and limiting to "yesterday" does not fix that.

Re:Anything longer ago than yesterday should just say the ac... by jjav on Saturday October 14, 2023 @05:41PM (#37884506)
I feel like there was a UI designer convention and they had a contest on the best way to hate on users with GUI microagressions and this "N days ago" trend won so now it's everywhere.

I don't want to do date math in my head! Just give me the precise timestamp!

Don't throw away information with nonsense like "1 year ago" when as the parent post says, that could mean anything in a huge range of days.

Just show the actual timestamp!

Re:Anything longer ago than yesterday should just say the ac... by aristus on Saturday October 14, 2023 @09:21PM (#37885924)
IIRC this started in the Mac finder with OSX 10.2. It bled onto the web a few years later with the advent of UI frameworks and blog feeds.
Re:Anything longer ago than yesterday should just say the ac... by jjav on Sunday October 15, 2023 @01:59AM (#37887278)
> IIRC this started in the Mac finder with OSX 10.2.

I see proper timestamps in Finder in Date Modified column.

Re:Anything longer ago than yesterday should just say the ac... by Cockbrand on Sunday October 15, 2023 @06:48AM (#37888651)
Relative dates in Finder list view have been around since at least Mac OS 9.x, see for example this screenshot: https://i.stack.imgur.com/bdY7i.jpg
Re:Anything longer ago than yesterday should just say the ac... by troupo on Sunday October 15, 2023 @09:09AM (#37889433)
IIRC the trend started with Twitter
Re:Anything longer ago than yesterday should just say the ac... by krater23 on Sunday October 15, 2023 @03:34AM (#37887740)
I feel like they regulary do this contests and are only working in making UI more shitty every day.
Re:Anything longer ago than yesterday should just say the ac... by HeavyStorm on Sunday October 15, 2023 @08:19AM (#37889142)
Hah, like UI designers hold conventions...

The current generation of UI / UX people come usually from non tech backgrounds and are people very keen on... Making things pretty. They seem to know very little, however, about usability and other principles that we, developers, used to care about.

Re:Anything longer ago than yesterday should just say the ac... by handsclean on Saturday October 14, 2023 @06:00PM (#37884643)
Even more fun: everybody rounds differently. “1 year ago” may mean 365 to 729 days ago to YouTube, but another website thinks it means 183 to 548 days ago (nearest whole number of years), and another website 350 to 548 days ago (nearest whole number of months up to 11, then years), and another anywhere from 1-365 to 364-729 days ago (within the last calendar year).
Re:Anything longer ago than yesterday should just say the ac... by Zancarius on Saturday October 14, 2023 @07:25PM (#37885222)
Exactly, and I think we as humans also read it differently. To me "3 years ago" reads "sometime in 2020, who knows?" but it might be "October 2020" to someone else. It's so imprecise as to be rather useless.
Re:Anything longer ago than yesterday should just say the ac... by cushpush on Sunday October 15, 2023 @01:42AM (#37887195)
One more significant digit solves this: 3.2 years ago
Re:Anything longer ago than yesterday should just say the ac... by krater23 on Sunday October 15, 2023 @03:32AM (#37887731)
I would have no plan when this was. Just writing the fucking date is the best solution.
Re:Anything longer ago than yesterday should just say the ac... by yonatan8070 on Sunday October 15, 2023 @03:56AM (#37887844)
Except that saying "1.5 years ago" with a decimal would be 1 year and 6 months ago, and you won't want to do the conversions from a base 10 to base 12 for the month. Just write "October 21, 2020"
Re:Anything longer ago than yesterday should just say the ac... by Fanmade on Sunday October 15, 2023 @04:07AM (#37887894)
Which would be the worst date format. Just use ISO 8601 (2020-10-21) and you could even sort by the date.
Re:Anything longer ago than yesterday should just say the ac... by 9dev on Sunday October 15, 2023 @05:33AM (#37888331)
Isn’t it nice to see people deduct in real time why many sites use relative timestamps?

For most people, exact time doesn’t even really matter — it’s about estimating a broad chronological context for the most part. I’d just wish the UI would have a universal and easily accessible way to disclose the exact time when I actually need it.

Re:Anything longer ago than yesterday should just say the ac... by funcDropShadow on Sunday October 15, 2023 @04:39PM (#37893202)
> Isn’t it nice to see people deduct in real time why many sites use relative timestamps?

But that is throwing out the baby with the bath water. The existence of multiple locally used data formats is no reason replace information with this oversimplified nonsense. Browser can and used to provide the locale with every request. That is enough information to format a data such that it is readable to the user.

Re:Anything longer ago than yesterday should just say the ac... by remram on Saturday October 21, 2023 @02:16AM (#37964519)
ISO 8601 is a long document which none of us can read and which specifies A LOT of different formats, including 2023-10-21, +0020231021, 2023-W42, 2023-294, and a lot of others (including duration specifiers).

Citing RFC 3339 is usually a better idea, since in addition to be readable for free, it is limited to the date formats you are thinking about. My 2 cents on your preferred citation, keep preaching though!

https://datatracker.ietf.org/doc/html/rfc3339

With apologies for the delayed response, I got here from the weekly hackernewsletter.

Re:Anything longer ago than yesterday should just say the ac... by siva7 on Saturday October 14, 2023 @06:07PM (#37884692)
I sometimes really wonder who the heck greenlights such horrible UX at Google.
Re:Anything longer ago than yesterday should just say the ac... by 1vuio0pswjnm7 on Saturday October 14, 2023 @11:55PM (#37886734)
"So if I see two videos that were both uploaded "a year ago", it's impossible to know which is more recent without actually opening the videos, going to the description, and looking at the date."

For better or worse (worse, IMHO), this is how YouTube search works. It takes at least two HTTP requests to get the precise dates. One to retreieve the SERP. Another to retrieve the JSON for each videoID. The JSON contains the upload date, etc.

IMO this sort of inefficient design pattern is faciltated by web developers who rely on Javascript, which is seemingly all of them. Webpages become shells for advertising and Javascript is used to fetch non-advertising, i.e., data. Google wants users to make clicks and track them, i.e., collect behavioural data. Thus it makes sense that a user would be forced to "open" a video to see its actual upload date.

The suite of tiny custom utilties I wrote in C can search YT and retrieve all YT videos, this can be upwards of 900 results. The output is CSV, SQL or simple HTML, including upload date and other data I find useful. This is done using only two TCP connections. No browser is needed. The simple HTML is just a page that looks like CSV, with a hyperlink to the video file. It's "YT redesigned" to look like I want it to look. I do the web development before opening the page in a browser.

The custom "downloader" I wrote is smaller, simpler and faster than yt-dlp. No Python required. But most times I don't download. I just use the simple HTML that looks like CSV. IMHO, this is much better than Google's privacy-invasive page laden with Javascript. I can see the precise dates and other useful data. I can sort by vaious columns. And I can exclude garbage videos that Google ("the algorithm") inserts into results, videos that have nothing to do with the search query string I submitted.

Re:Anything longer ago than yesterday should just say the ac... by funcDropShadow on Sunday October 15, 2023 @04:50PM (#37893279)
> Google wants users to make clicks and track them, i.e., collect behavioural data. Thus it makes sense that a user would be forced to "open" a video to see its actual upload date.

You don't need malice to explain that --- just A/B testing. Making information, that a user wants or needs, less accessible increases engagement, since the user is clearly clicking more.