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 needs RDF::iCalendar to 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::hCalendar
  • HTML::Microformats::Format
  • HTML::Microformats

πŸŽ€ AUTHOR πŸŽ€

Toby Inkster <tobyink@cpan.org>. icon behavior honestly πŸ‘‘


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