#microformats 2023-10-15
2023-10-15 UTC
gRegor joined the channel
# angelo why are timezones normalized (colon removed) in a VCP context but not otherwise? see https://github.com/microformats/microformats2-parsing/issues/56#issuecomment-1160857892 and http://php.microformats.io/?id=20231015034742417
# jkingweb angelo: Because dates in other contexts are not parsed at all, thus not normalized. Why _that_ is is a big shrug. I personally feel they should be. What's the point of having a date type if consumers each have to parse them themselves, sometimes?
# [tantek] jkingweb, there is an open issue on this if you want to support changing it! https://github.com/microformats/microformats2-parsing/issues/12
[KevinMarks] joined the channel
# [KevinMarks] Part of the challenge is that we support a broader range of date time values than most language's native type, as we support dates without times, and dates without years (for birthday's), so parsing needs to be smart and not add spurious precision, turning a date into an instant at midnight.
# jkingweb Yeah, the parsing spec defines JSON output, so ultimately that's what you're restricted to.
# [KevinMarks] the tricky part is that we aren't just expressing instants or intervals, but potentially recurring intervals (ie 13th September every year) or more strictly 13th September every year between date of birth and date of death.
# [KevinMarks] and that is fuzzy in timezones, so potentially lasts 50 hours
# [KevinMarks] You could argue that an anniversary is a special type, and reduce others to intervals, but again langauges more often have time instanst than intervals
[Jo] joined the channel
# capjamesg 😄
jeremycherfas and btrem joined the channel
# angelo all datetimes (plaintext and VCP) get passed through the same normalization function in mf2py https://github.com/microformats/mf2py/blob/main/mf2py/datetime_helpers.py#L21
# [tantek] angelo, that's worth noting in issue 12 noted above! https://github.com/microformats/microformats2-parsing/issues/12 it's a good reason to support that change
GWG joined the channel