Class Time
The time element represents a specific point in time or a duration. It provides a machine-readable way to mark up dates and times in HTML, making it easier for search engines, screen readers, and other tools to understand and process temporal information. The element can contain human-readable text while providing a machine-readable datetime attribute.
Examples:
The following convenience methods are provided for constructing instances of this bean:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.bean.html5.HtmlElementMixed
child, children, getChild, getChild, getChild, getChildren, setChildrenMethods inherited from class org.apache.juneau.bean.html5.HtmlElement
accesskey, attr, attrUri, class_, contenteditable, deminimize, dir, getAttr, getAttr, getAttrs, hidden, id, lang, onabort, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, oncuechange, ondblclick, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting, self, setAttrs, spellcheck, style, tabindex, title, toString, translate
-
Constructor Details
-
Time
public Time()Creates an emptyTimeelement. -
Time
Creates aTimeelement with the specifiedHtmlElementMixed.children(Object[])nodes.- Parameters:
children- TheHtmlElementMixed.children(Object[])nodes. Must not benull .
-
-
Method Details
-
datetime
datetime attribute.Specifies the machine-readable value of the time element. This provides a standardized format for the date and time that can be processed by computers.
The value should be a valid date-time string in ISO 8601 format.
- Parameters:
value- The machine-readable date and time value. Can benull to unset the attribute.- Returns:
- This object.
-