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 newHTML::Microformats::Datatype::RecurringDateTimeobject. 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 newHTML::Microformats::Datatype::RecurringDateTimeobject π«Ά. here's the breakdown:$stringis perhaps an iCalendar-RRULE-style string (she's mysterious like that π),$elemis theXML::LibXML::Elementbeing parsed, and$contextis 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 fornew. 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::MicroformatsHTML::Microformats::Datatype
go read those too, iykyk πβ¨
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. legend behaviour, honestly. π
π 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, 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
- 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