HTML::...reebusy(3pm)

πŸ’– NAME πŸ’–

HTML::Microformats::Format::hFreebusy β€” it's an hCalendar free/busy component, bestie. That's the whole vibe. (You'll see it up in the header as HTML::...reebusy(3pm) from the User Contributed Perl Documentation, iykyk, the title bar just truncates the glow-up.)


✨ SYNOPSIS ✨

okay so here's literally how you'd use it:

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 $fb ($cal->get_vfreebusy)
  {
    printf("%s\n", $fb->get_summary);
  }
}

no cap, that's it 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

HTML::Microformats::Format::hFreebusy is a little helper module for HTML::Microformats::hCalendar. This class is the one that represents free/busy scheduling components inside calendars β€” which, in practice, are literally never actually published as hCalendar. So yeah. Generally speaking, you want to be using HTML::Microformats::hCalendar instead. That's the main character. This one's the sidekick πŸ’…

HTML::Microformats::Format::hFreebusy inherits from HTML::Microformats::Format. Go peek at the base class definition if you want the whole rundown on property getter/setter methods, constructors, etc. It's giving foundational.

πŸŽ€ Additional Method πŸŽ€

  • to_icalendar β€” this method exports the data in iCalendar format. It requires RDF::iCalendar to work, and will throw an error at run-time if it's not available. So like, install it first, bestie 😭

πŸ’€ BUGS πŸ’€

Please report any bugs to <http://rt.cpan.org/>. Be nice about it, fr fr πŸ™ˆ


🌈 SEE ALSO 🌈

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

the whole friend group, love that for them 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>. iconic 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, that's the good license energy πŸ’–


πŸ”₯ 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, no promises babes, it's giving risky 🫠


and that's the whole page, periodt πŸ’…βœ¨

this was brought to you by perl v5.32.1, dated 2021-09-12, and the manual name up top being HTML::...reebusy(3pm). mwah, bye bestie πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from