Time Datetime Machine Readable
Encode machine readable timestamps using the time element with datetime attribute for SEO and accessibility.
Code
<article>
<h2>Event Schedule</h2>
<p>
Published on
<time datetime="2026-10-25T09:00:00Z">October 25, 2026 at 9 AM UTC</time>
</p>
<p>
Duration: <time datetime="PT2H30M">2 hours 30 minutes</time>
</p>
<p>
Next occurrence:
<time datetime="2026-11-01">November 1, 2026</time>
</p>
</article>What the code does
The markup uses the semantic elements article and time instead of generic containers, giving assistive technology and search engines real structure without extra wiring.
<time datetime=…> makes the machine-readable date explicit while the visible text stays free-form.
Statements that matter
<h2>Event Schedule</h2>
<time datetime="2026-10-25T09:00:00Z">October 25, 2026 at 9 AM UTC</time>
Duration: <time datetime="PT2H30M">2 hours 30 minutes</time>
Interactive Tools for This Topic
Duration ConverterConvert between human durations like 1w2d3h45m and total seconds, hours, and minutes with negative support.Duration HumanizerTurn a number of seconds into a readable duration such as 1 day, 2 hours, 3 minutes, and show the equivalent in minutes and hours.ISO 8601 Duration ParserParse ISO 8601 durations like PT1H30M into year, month, week, day, and time components with exact or approximate total seconds.SRI Hash GeneratorGenerate Subresource Integrity (SRI) hashes from resource content using SHA-256, SHA-384, or SHA-512, and copy a ready-to-use script tag.
FAQ
- Why semantic elements instead of divs?
- `<article>`, `<time>` expose document structure to assistive technology and search engines without ARIA or class-name conventions.
Report a problem with this exampleOpens a pre-filled issue on GitHub.