6 ms·
You get the abs date if you hover (it's set as the title attr)
by brbcoding 7y ago
You get the abs date if you hover (it's set as the title attr)
- munk-a 7y agoIt'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.
- captn3m0 7y agoI 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.
- dmitriid 7y agoIt 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)
- ken 7y agoSome pages have that, and some don't. The iPhone page doesn't have absolute dates as titles, for example.
- captn3m0 7y agoiPhones don’t have EOL vs Support dates, so I had to hack around it for the release. Will fix soon.
- choward 7y agoThat would be fine if I wasn't using my phone.
- runarberg 7y agoI wonder why they didn’t use the `<time>` element for this. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...
- captn3m0 7y agoAs 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.
- runarberg 7y agoI 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.
- dmitriid 7y agoMobile phones don’t have hover.
- TeMPOraL 7y agoIt'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?
- cheschire 7y agoNot 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.