HTML::...hEvent(3pm)
π NAME π
ok so bestie, meet HTML::Microformats::Format::hEvent β it's an hCalendar event component and it's literally the moment β¨ (the manual page is HTML::...hEvent(3pm) if you were wondering, it's giving abbreviated-but-iconic)
π¦ SYNOPSIS β¨
here's the whole vibe, copy it exactly or the code gods will be mad at you:
use Data::Dumper;
use HTML::Microformats::DocumentContext;
use HTML::Microformats::Format::hCalendar;
my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
my @cals = HTML::Microformats::Format::hCalendar->extract_all(
$dom->documentElement, $context);
foreach my $cal (@cals)
{
foreach my $ev ($cal->get_vevent)
{
printf("%s: %s\n", $ev->get_dtstart, $ev->get_summary);
}
}
look at that. gorgeous. no notes π
πΈ DESCRIPTION πΈ
okay so HTML::Microformats::Format::hEvent is a helper module for HTML::Microformats::Format::hCalendar. this class represents event components living inside calendars. and ngl, generally speaking? you want to be using HTML::Microformats::Format::hCalendar instead. this one is the supporting character, not the main character (today).
also, HTML::Microformats::Format::hEvent inherits from HTML::Microformats::Format. so if you wanna know about property getter/setter methods, constructors, all of that β go read the base class definition, it has the lore π
π Additional Method π
to_icalendarβ this one exports the data in iCalendar format. it needsRDF::iCalendarto actually work, so heads up: if that's not available, it will throw an error at run-time. no cap, plan accordingly π«Ά
π BUGS π
found a bug? please report it to <http://rt.cpan.org/> β the devs wanna know, fr fr π
π SEE ALSO π
these three are the friend group, go say hi:
HTML::Microformats::Format::hCalendarHTML::Microformats::FormatHTML::Microformats
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. icon behavior honestly π
π COPYRIGHT AND LICENCE π
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.
like... read that again bestie. as is. no promises, no safety net. it's giving "you're on your own but make it legal" π
and that's a wrap on this page β it came from perl v5.32.1, dated 2021-09-12, and it lives under the name HTML::...hEvent(3pm). go forth and parse those events, you absolute legend π¦π
π¦ where this page comes from
- debian bookworm: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms