> For the complete documentation index, see [llms.txt](https://docs.dbnetsoft.com/dbnetsoft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnetsoft.com/dbnetsoft/knowledge-base/scriban-scripting/functions/custom-standard-functions/alge-timing-d-line-gaz.md).

# ALGE-Timing D-Line/GAZ

Prefix for all of these function is either `gaz` or `dline`.&#x20;

So you can write `gaz.FormatRaceResult` to format a RACE RESULT string into a GAZ/D-Line compatible string.

| Method           | Parameters                                                                                                                                                                                                                                                                                          | Description                                                                                                               |                                                                              |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `CreateProtocol` | <p><code>Address</code> (String)<br>Blank or A/B/...</p><p><code>Bib</code> (String)<br>Blank or bib number as string</p><p><code>Rank</code> (String)<br>Blank or rank as string</p><p><code>Time</code> (String)<br>Should come from one of the formating functions to contain correct format</p> | Creates a standard ALGE protocol for driving GAZ/D-Line displays.                                                         |                                                                              |
| `Format`         | <p><code>Time</code> (TimeSpan, DateTime or DateTimeOffset)<br>Time to show<br><code>Precision</code> (Number)<br>Number of fractional digits (0-4)<br><code>LeadingZeros</code> (Bool)<br>Switch for show ing leading zeros or not (True/False)</p>                                                | <p>Converts a given timespan or datetime and formats it using RaceResult12 formating syntax.<br>Example: <code>{{ Runtime | FormatRaceResult "Hh:mm:ss,k" }}</code> produces <code>2:55:87,7</code>.</p> |
|                  |                                                                                                                                                                                                                                                                                                     |                                                                                                                           |                                                                              |
|                  |                                                                                                                                                                                                                                                                                                     |                                                                                                                           |                                                                              |
