HTML::Object::DOM::Element::Time - HTML Object DOM Time Class
use HTML::Object::DOM::Element::Time; my $time = HTML::Object::DOM::Element::Time->new || die( HTML::Object::DOM::Element::Time->error, "\n" );
v0.2.0
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.
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +----------------------------------+ | HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Time | +-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +----------------------------------+
Inherits properties from its parent HTML::Object::DOM::Element
Is a string that reflects the datetime HTML attribute, containing a machine-readable form of the element's date and time value.
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
Inherits methods from its parent HTML::Object::DOM::Element
Jacques Deguest <jack@deguest.jp>
Mozilla documentation, Mozilla documentation on time element
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.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.