Skip to content
Sections
Fiesta

format-durations

Dates, numbers and names How to show dates, numbers, money, names and addresses, and which ones people mix up.

Use <time> for a length of time too. The computer-readable version looks strange: PT2H30M means 2 hours 30 minutes.

Each example is live, but its links go nowhere. HTML shows the markup to copy.

Preview
<section rst-box>
  <dl rst-detail>
    <dt>Build time</dt>
    <dd>
      <time datetime="PT2H30M">2h 30m</time>
    </dd>
  </dl>
</section>