HTML::...hAlarm(3pm)

πŸ’– NAME πŸ’–

HTML::Microformats::Format::hAlarm β€” it's the hCalendar alarm component, bestie. An alarm, but make it microformats. ⏰✨

And yes, this is the manual page for HTML::Microformats::Format::hAlarm(3pm), so you're in exactly the right place. 🫢


✨ SYNOPSIS ✨

okay so here's the whole vibe in code form, no edits, no notes:

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)
  {
    foreach my $alarm ($ev->get_valarm)
    {
      print $alarm->get_description . "\n";
          }
  }
}

like... it's giving nested loops and we are obsessed. πŸ’…


🌸 DESCRIPTION 🌸

HTML::Microformats::Format::hAlarm is a lil helper module for HTML::Microformats::Format::hCalendar. It's the class that reps alarm components inside your calendars. πŸŽ€

ngl though β€” generally speaking, you want to use HTML::Microformats::Format::hCalendar instead. This one's the supporting cast, not the main character. πŸ™ˆ

Also, HTML::Microformats::Format::hAlarm inherits from HTML::Microformats::Format. So if you wanna know about property getter/setter methods, constructors, all that good stuff β€” go read the base class definition, it's all described there. πŸ’œ

πŸ¦‹ Additional Method πŸ¦‹

  • to_icalendar β€” this method exports the data in iCalendar format. It needs RDF::iCalendar to actually work, and it will throw an error at run-time if that's not available. so like, install your deps first, periodt. 😭

πŸ’€ BUGS πŸ’€

Please report any bugs to <http://rt.cpan.org/>. (the RT link, exactly as written, do not @ me) πŸ”₯


πŸ”₯ SEE ALSO πŸ”₯

  • HTML::Microformats::Format::hCalendar
  • HTML::Microformats::Format
  • HTML::Microformats

go read those, they're the whole friend group. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>. ✨


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. 🫢


⭐ 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, fr fr. no promises, bestie. read it and weep (or don't, that's the point). πŸ’€


and that's the whole page, mwah. πŸ’– this one's from perl v5.32.1, dated 2021-09-12 β€” vintage, iconic, still slaying. bye bestie!! πŸ¦‹βœ¨

πŸ“¦ where this page comes from