public static void serializeS5Time(final WriteBuffer io, PlcValue value) {
        final PlcTIME time = (PlcTIME) value;
        Short shortValue = durationToS5Time(time.getDuration());
        try {
            io.writeUnsignedInt(16,shortValue);
        } catch (SerializationException e) {
            throw new RuntimeException(e);
        }
    }
Symbol       Meaning
======       =======

@param alarm     Alarm type from PLC.
@param alarmText The text string to be processed.
@param textlists List of texts for indexed replacement.
@return The text string with the replacement values.
@ Beginning of format string
Pv           Process value number (optional)
Typ          Type of process value (optional)
% width      Width of the signaling field on the OP
.precision   Number of decimal places (optional with format = "f")
format       Process value representation mode
@ End of format string
<p>
Type		Meaning
====             =======
B		BOOL
Y		BYTE
C		CHARACTER
W		WORD
I		INTEGER
X		DWORD
D		DINT
R		REAL
<p>
Representation       Format
==============       ======
%[i]d                Decimal signed
%[i]u                Decimal without sign
%[i]x                Hexadecimal
%[i].[y]f            Signed fixed point
%[i]b                Binary
%[i]s                Character string (STRING ANSI)
%t#<Library name>    Access to text library
<p>
General representation:
@@&gt;Associated Value>&gt;Type>&gt;Format>&gt;Library name>@
plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/utils/StaticHelper.java