News for hackers. Stuff that matters.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by brbcoding on Tuesday May 28, 2019 @04:38PM (#20034134)
You get the abs date if you hover (it's set as the title attr)
Re:Show HN: Endoflife.date – Site with EOL dates of everything by munk-a on Tuesday May 28, 2019 @04:43PM (#20034187)
It'd still be nice to not have this tied to hover, relative dates are more useful to get a gist of how long you've got - those absolute dates are usually what you need to sell it to management.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by captn3m0 on Tuesday May 28, 2019 @04:52PM (#20034275)
I started with absolute dates, but my primary use-case is “How much time do I have?”, for which relative dates work better.

I’ll see if I can do better.

Re:Show HN: Endoflife.date – Site with EOL dates of everything by dmitriid on Wednesday May 29, 2019 @02:57AM (#20037463)
It can be done as

   1 year 7 days (2020-06-03)
or

   2020-06-03 (1 year 7 days)
If/when you do absolute days, don’t use US format :) (I don’t know hiw it is right now, can’t hiver on mobile)
Re:Show HN: Endoflife.date – Site with EOL dates of everything by dx034 on Wednesday May 29, 2019 @04:40AM (#20037955)
Or write out months to make clear which format it is (03 June 2020). That way it's clear for everyone which format was used
Re:Show HN: Endoflife.date – Site with EOL dates of everything by captn3m0 on Wednesday May 29, 2019 @03:47AM (#20037680)
It is YYYY-MM-DD
Re:Show HN: Endoflife.date – Site with EOL dates of everything by dmitriid on Wednesday May 29, 2019 @08:50AM (#20039486)
The best and the only true format :)
Re:Show HN: Endoflife.date – Site with EOL dates of everything by runarberg on Tuesday May 28, 2019 @07:02PM (#20035266)
I wonder why they didn’t use the `<time>` element for this.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...

Re:Show HN: Endoflife.date – Site with EOL dates of everything by captn3m0 on Wednesday May 29, 2019 @03:51AM (#20037694)
As far as I know, no browser actually does anything special with `<time>` elements. Might be nice for screenreaders though, so I'll see if I can switch.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by runarberg on Wednesday May 29, 2019 @11:45AM (#20041517)
I don’t know if this has been done but I suppose a good use of the `<time>` element would be for browser addons to target it and use the `datetime` attribute for something like “add to calendar (ical)” or “translate the text content to my locale” or something similar.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by ken on Tuesday May 28, 2019 @04:50PM (#20034245)
Some pages have that, and some don't. The iPhone page doesn't have absolute dates as titles, for example.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by captn3m0 on Tuesday May 28, 2019 @04:58PM (#20034326)
iPhones don’t have EOL vs Support dates, so I had to hack around it for the release. Will fix soon.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by TeMPOraL on Wednesday May 29, 2019 @03:47AM (#20037676)
It's an annoying UX antipattern. It doesn't work on mobile, and forces one to use the mouse instead of just seeing the information in its more useful form.

If anything, why not put the "N days from now" text in the title attr instead?

Re:Show HN: Endoflife.date – Site with EOL dates of everything by cheschire on Wednesday May 29, 2019 @05:30AM (#20038239)
Not every pattern that is controversial is an anti-pattern. Relative time is useful for a different reason than absolute time. One use case is not worse than the other, they're just different.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by choward on Tuesday May 28, 2019 @06:26PM (#20035041)
That would be fine if I wasn't using my phone.
Re:Show HN: Endoflife.date – Site with EOL dates of everything by dmitriid on Wednesday May 29, 2019 @02:55AM (#20037453)
Mobile phones don’t have hover.