HTML::O...t::Time(3)
πΈ NAME πΈ
HTML::Object::DOM::Element::Time β HTML Object DOM Time Class. That's the name, bestie, and this is the HTML::O...t::Time(3) manual π. Short, sweet, and all about the <time> element's DOM class. Slay.
β¨ SYNOPSIS β¨
Okay so to load it up, you literally do this:
use HTML::Object::DOM::Element::Time;
my $time = HTML::Object::DOM::Element::Time->new ||
die( HTML::Object::DOM::Element::Time->error, "\n" );
No cap, that's the whole entrance. π«Ά
π VERSION π
v0.2.0 β that's the version, periodt. π
π¦ DESCRIPTION π¦
This interface provides special properties (beyond the regular HTML::Object::DOM::Element interface it also has available to it by inheritance) for manipulating <time> elements. It's giving very specific <time>-element main character energy, and honestly? Obsessed. β¨
π INHERITANCE π
The ancestry is lowkey iconic β look at this chain:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +----------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Time |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +----------------------------------+
π PROPERTIES π
Inherits properties from its parent HTML::Object::DOM::Element, bestie.
β° dateTime β°
dateTime is a string that reflects the datetime HTML attribute, containing a machine-readable form of the element's date and time value. It's very "give me the data in a format the computer actually understands" of it. π
Example:
# Assumes there is <time id="t"> element in the HTML
my $t = $doc->getElementById( 't' );
$t->dateTime = "6w 5h 34m 5s";
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime π¦
π METHODS π
Inherits methods from its parent HTML::Object::DOM::Element. Nothing extra here, just the inherited glow-up. β¨
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β author, fr fr. π
π₯ SEE ALSO π₯
- Mozilla documentation:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement - Mozilla documentation on time element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time
π COPYRIGHT & LICENSE π
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
XOXO, your fave manual π
β source/version perl v5.42.2, date 2026-02-15. User Contributed Perl Documentation, out. π«Ά
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms