HTML::...teTime(3pm)
๐ NAME ๐
HTML::Microformats::Datatype::DateTime โ it's giving dates. And datetimes. That's the whole vibe, bestie. ๐๏ธโจ
(Also hi, you're reading a page from the User Contributed Perl Documentation collection, manual section 3pm, and the module lives under HTML::Microformats::Datatype::DateTime. Slay.)
๐ธ SYNOPSIS ๐ธ
Like, the tiniest little taste of what this thing does:
my $duration = HTML::Microformats::Datatype::DateTime->now;
print "$duration\n";
Okay so you literally just asked it for now and it gave you a whole datetime back. Main character behaviour fr fr. ๐
โจ DESCRIPTION โจ
This class inherits from DateTime, so every single method DateTime has? Yeah. It's got 'em. All of them. No cap. ๐ซถ
๐ Constructors ๐
So because it inherits from DateTime, the standard DateTime constructors โ new, now, etc. โ should just work. The way that inheritance ate. ๐
And then there's this extra one:
$dt = HTML::Microformats::Datatype::DateTime->parse($string, $elem, $context, [$tz], [$base])โ Creates a newHTML::Microformats::Datatype::DateTimeobject. โจ$tzis the timezone to use, but only if it can't be figured out otherwise. Like, it's the backup plan timezone. ๐$baseis a base datetime to use for relative datetimes, whatever that means. (Not me being honest about the docs. ๐)
๐ฆ Public Methods ๐ฆ
$d->to_stringโ Returns a literal string. That's it. That's the method. ๐$d->datatypeโ Returns an the RDF datatype URI representing the data type of this literal. Yes, "an the" โ we don't fix the original's grammar, we respect it. Iconic. ๐
๐ BUGS ๐
Please report any bugs to <http://rt.cpan.org/>. Do it. Be brave. The maintainers are literally waiting. ๐โก๏ธ๐ฎ
๐ฅ SEE ALSO ๐ฅ
Go read these next, bestie, they're the friend group:
HTML::MicroformatsHTML::Microformats::DatatypeDateTime
๐ AUTHOR ๐
Toby Inkster <tobyink@cpan.org>. King behaviour. ๐ซก
๐ 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. Do your thing. Legally. โญ
๐ง 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.
Translation: it comes with zero promises, okay?? No guarantees, no safety net, no "it'll definitely work on your machine". Take it or leave it. ๐ญ (This is important, don't skip it just because I made it cute.)
perl v5.32.1 ยท 2021-09-12 ยท HTML::Microformats::Datatype::DateTime(3pm)
That's the version and the date this whole page was last touched, and that's the manual it lives in โ thanks for coming to my TED talk, ily, bye bestie! ๐โจ๐๐ฆ
๐ฆ 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