HTML::...alendar(3pm)
π NAME π
HTML::Microformats::Format::hCalendar β bestie, it's the hCalendar microformat π
β¨ SYNOPSIS β¨
okay so here's the whole vibe, copy-paste ready, no cap:
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 $event ($cal->get_vevent)
{
printf("%s: %s\n", $ev->get_dtstart, $ev->get_summary);
}
}
like. she's serving. you build a context, you extract_all the calendars off the document element, you loop the events, you print the start time and the summary. iconic behaviour fr fr π¦
πΈ DESCRIPTION πΈ
HTML::Microformats::Format::hCalendar inherits from HTML::Microformats::Format. lowkey the important part: if you wanna know about property getter/setter methods, constructors, all that, go read the base class definition. she's not re-explaining it here, bestie π
π Additional Method π
to_icalendarβ this one exports your data in iCalendar format. it needsRDF::iCalendarto actually work though. and if that module isn't available? it throws an error at run-time. not a warning, not a vibe, an actual error. so likeβ¦ make sure you have it before you come for her π
π MICROFORMAT π
HTML::Microformats::Format::hCalendar supports hCalendar as described right here:
<http://microformats.org/wiki/User:TobyInk/hcalendar-1.1>
that's the spec, that's the source of truth, go read it π«Ά
π RDF OUTPUT π
the data comes back using the W3C's revised iCalendar vocabulary:
<http://www.w3.org/2002/12/cal/icaltzd#>
plus some supplemental terms from Toby Inkster's revised iCalendar extensions vocabulary:
<http://buzzword.org.uk/rdf/icaltzdx#>
and also occasional other terms. so yeah, it's giving mixed vocabulary energy, but that's on purpose π
π BUGS π
please report any bugs to <http://rt.cpan.org/>. she wants to know. tell her everything. π
β SEE ALSO β
HTML::Microformats::FormatHTML::Microformats
iykyk π
π¦ AUTHOR π¦
Toby Inkster <tobyink@cpan.org>.
(we love him, we thank him, periodt π)
π 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.
so like, same terms as Perl. go wild responsibly πΈ
π¨ 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.
bestie. read that again. "AS IS". no promises, no guarantees, no warranty of any kind. she is not legally responsible for your situationship with your data. okay? okay π
and that's the whole page, babes β¨ this was written against perl v5.32.1, dated 2021-09-12, filed under HTML::...alendar(3pm) β mwah, go build something cute ππ«Ά
π¦ 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