Where precision is needed (maybe finegrained transactions?) date and time might be better.
Where precision is needed (maybe finegrained transactions?) date and time might be better.
> Where have you seen a service describing something posted less than 12 hours ago as being "posted last week" rather than "posted yesterday"/"posted today"?
Every single time display library I have seen will do as the poster explained, and show more granular information the closer it is (generally starting at “X seconds ago”). Your technicality is certainly true, but a strawman.
This is literally a non-problem. If a library behaved in the way the parent commenter makes them seem like, then, sure, they have a point. But they don’t. Something that occurred a second ago would say “a second ago”. Something that occurred 5 minutes and 43 seconds ago would say “6 minutes ago”, etc. There is no library in the world which takes a timestamp a second ago and outputs “a week ago” and pretending like there is is, literally, a strawman.
Yeah, I've seen enough examples to know that no 2 websites implement the same logic so I shouldn't try to second-guess anything more than what the text literally says.
If you were told something was uploaded on 2023-10-02, with just the average feeling that we're currently around the middle of the month we'd know the video is roughly a week or two in the past.
Especially being from Europe: it is never clear if 10/04/23 means October 4th or April 11th unless you know which date format is being used.