#[tantek]there *is* normalization, just not to artificial precision. that's the key
#[tantek]language date parsers do this really dumb thing (numerically) of always implying artificial precision of seconds when there is none in the input data
gRegorLove_, [metbril], ur5us, metbril1 and jamietanna joined the channel
#[jacky][tantek] do you mean like if someone provides "2:40 PM", they'd parse it as 14:40:00 or something similar?
#[jacky]I've been working to avoid that in the parser I'm working on
#aaronpkyes, if you feed a string like "2:40 PM" into many languages date parsers and then output it you'll get the :00 seconds added on
#[jacky]yeah that's going to be nigh impossible for me to remove from this (unless I wrap it a bit more)
#aaronpkin most cases you can kind of work around it because you know what level of precision is important to display, but it's super annoying when it combines both the date and time
#sknebelthe parsers thus leave that to downstream consumers to have context about
#aaronpkif you give it "2022-02-04" then the date object becomes "2022-02-04 00:00:00" and now you can't tell whether the value had no time or actually was at midnight
#[KevinMarks]Also month precision dates are legitimate, and month and day with no year also - for birthdays for example.
jacky joined the channel
#[tantek]^ yes all of this, because programmers optimized languages and their functions for math, not human expressed content
#[KevinMarks]I used bradfitz's Facebook friend to contacts importer, and it defaulted everyone's birthday to 2000 so they only became able to invite for drinks last year
#@ludvikherrera↩️ Of course, when I mention HTML and content, it should be understood with all the nuance that is implied, from well-structured and written content, image captions, accessibility parameters, tidy and well-structured syntax, not only responsive but adaptive data + microformats. (twitter.com/_/status/1489641828068569090)
#[tantek]jacky, does your code handle the atomic form <a class="h-card" href="https://mozilla.org/">Mozilla Foundation</a> ? and produce an h-card item object with properties for url and name?