"> Soupermail Formats Example

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>">
<output name="http_time" alt="<br>" format="%hh% hours, %mm% minutes and %ss% seconds (%ampm%)">
<output name="http_date" alt="<br>">
<output name="http_date" alt="<br>" format="%dd%/%mmm%/%yy%">
<output name="http_date" alt="<br>" format="%epoch%">
<output name="http_date" alt="<br>" timeoffset="-5y">
<output name="http_date" alt="<br>" timeoffset="+14M">
<output name="http_date" alt="<br>" timeoffset="-83d">
<output name="http_time" alt="<br>" timeoffset="+15h">
<output name="http_time" alt="<br>" timeoffset="-35m">
<output name="http_time" alt="<br>" timeoffset="+160s">

Return to the examples page.


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


The template that made this page is formats.txt.