HTML::...Parser(3pm)

πŸ’– HTML::...Parser(3pm) β€” the vibe πŸ’–

okay so bestie, gather round, because this is the HTML::Microformats::Datatype::DateTime::Parser page (yes that's the manual name, it's giving long, we love her for it) and she is lowkey iconic. 🌸


✨ NAME ✨

HTML::Microformats::Datatype::DateTime::Parser β€” it parses ISO8601 datetimes. that's it. that's the whole job. and she does it beautifully. πŸ’…


🌈 DESCRIPTION 🌈

so here's the tea: this module is a moderately modified version of DateTime::Format::ISO8601. like, a glow-up, not a full rebrand. πŸ¦‹

the way that it works is it lets datetimes be written with a somewhat looser syntax β€” and the star of the show is that it supports whitespace between the date and the time instead of a "T". yes bestie, a lil space. so much chiller than that rigid T. no cap.

it also calculates the "resolution" of the datetime, which like β€” okay, what that means is: is it specified down to the year? the month? the day? the hour? the minute? the second? or even the nanosecond?? πŸ” and it drops that lil fact into $dt->{'resolution'}. obsessed.

other than all that, it can be used exactly as DateTime::Format::ISO8601 can. periodt. it parses strings into normal DateTime objects, just like you'd expect. πŸŽ€


πŸ’€ BUGS πŸ’€

found a bug? pls pls pls report it to <http://rt.cpan.org/>. bestie don't suffer in silence, the maintainers wanna know. 🫢


πŸ”₯ SEE ALSO πŸ”₯

  • HTML::Microformats::Datatype::DateTime
  • DateTime

iykyk. go read those too. ✨


πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>.

based on DateTime::Format::ISO8601 by Joshua Hoblitt. giving credit where credit is due, always. 🌟


Copyright 2003-2005 Joshua Hoblitt

Copyright 2008-2012 Toby Inkster

this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay. 🌈


⚠️ DISCLAIMER OF WARRANTIES ⚠️

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

(translation: no promises bestie, use at your own risk, that's the legal vibe 😭)


and that's the whole page!! πŸŽ€ this was perl v5.32.1, dated 2021-09-12, and yeah β€” the manual name is HTML::...Parser(3pm) in case you forgot, which you didn't, because you read the top. mwah. πŸ’–βœ¨

πŸ“¦ where this page comes from