HTML::...ateTime(3pm)

πŸ’– NAME πŸ’–

okay so bestie, HTML::Microformats::Datatype::RecurringDateTime β€” it's a datetime that recurs. like, it comes back. it's giving recurring plans, main character energy, the calendar that keeps showing up πŸ¦‹βœ¨


✨ SYNOPSIS ✨

my $r_datetime = HTML::Microformats::Datatype::RecurringDateTime->new($ical_string);
print "$r_datetime\n";

that's it. that's the whole vibe. πŸ’…


🌸 DESCRIPTION 🌸

πŸŽ€ Constructors πŸŽ€

  • $r = HTML::Microformats::Datatype::RecurringDateTime->new($string, [$context]) β€” bestie, this makes you a brand new HTML::Microformats::Datatype::RecurringDateTime object. iconic behaviour fr fr. and $string? that's an iCalendar-RRULE-style string. no cap. πŸ”₯
  • $r = HTML::Microformats::Datatype::RecurringDateTime->parse($string, $elem, $context) β€” also makes you a new HTML::Microformats::Datatype::RecurringDateTime object 🫢. here's the breakdown: $string is perhaps an iCalendar-RRULE-style string (she's mysterious like that πŸ™ˆ), $elem is the XML::LibXML::Element being parsed, and $context is the document context.
heads up, this constructor supports a bunch of experimental microformat interval patterns. lowkey mad scientist energy πŸ§ͺ✨ e.g.
<span class="rrule">
   The summer lectures are held held <span class="freq">yearly</span>,
   every <span class="interval">2</span>nd year (1999, 2001, etc),
   every <span class="byday">Sunday</span>
   in January <abbr class="bymonth" title="1" style="display:none"></abbr>
   at <span class="byhour">8</span>:<span class="byminute">30</span> and
   repeated at <span class="byhour">9</span>:30.
</span>

(yes it says "held held" twice, that's the original, I don't make the rules, I just report them πŸ’€)

  • $r = HTML::Microformats::Datatype::RecurringDateTime->parse_string($string, [$context]) β€” bestie this is essentially just an alias for new. that's the whole thing. she's new but with a nickname. πŸ’œ

πŸ‘‘ Public Methods πŸ‘‘

  • $r->to_string β€” hands you an iCal-RRULE-style formatted string that represents the recurrance. yes, spelled "recurrance", that's canon, don't come for me 😭
  • $r->datatype β€” returns the RDF datatype URI that represents the data type of this literal. she knows her type. self-aware queen. 🌈
  • $r->add_to_model($model) β€” adds the recurring datetime to an RDF model as a resource, not a literal. read that again. a resource. not a literal. important, bestie, do not skip that part πŸ’…

πŸ’€ BUGS πŸ’€

found a bug? please report any bugs to <http://rt.cpan.org/>. tell them I sent you (they will not know who I am) πŸ“


πŸ¦‹ SEE ALSO πŸ¦‹

  • HTML::Microformats
  • HTML::Microformats::Datatype

go read those too, iykyk πŸ“šβœ¨


🌟 AUTHOR 🌟

Toby Inkster <tobyink@cpan.org>. legend behaviour, 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.

so like, go off, remix it, slay 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. no promises. none. zero. she is exactly what she is, take it or leave it 😀✨


and that's the whole page! this was HTML::...ateTime(3pm) from the User Contributed Perl Documentation, running on perl v5.32.1, dated 2021-09-12. thanks for coming to my ted talk, ily, bye πŸ’–πŸ«ΆπŸŒˆ

πŸ“¦ where this page comes from