Formats in Templates

This page shows the use of formats with OUTPUT elements in a template.

OUTPUT Element Template Results
<output name="http_time" alt="<br>"> 18:28:24
<output name="http_time" alt="<br>" format="%hh% hours, %mm% minutes and %ss% seconds (%ampm%)"> 06 hours, 28 minutes and 24 seconds (pm)
<output name="http_date" alt="<br>"> Thu Jun 26 2025
<output name="http_date" alt="<br>" format="%dd%/%mmm%/%yy%"> 26/06/25

Return to the examples page.


The Soupermail configuration file that made this page looks like this:

blank : formats.txt


The template that made this page is formats.txt.