ALGE-Timing D-Line/GAZ
Last updated
{{
gaz.CreateProtocol("", "", "", "");
}}{{
address = "";
bib = "";
rank = "";
clockString = gaz.Format(Clock, 0, true)
gaz.CreateProtocol(address, bib, rank, clockString);
}}{{
address = "";
bib = "";
rank = "";
time = Model.Clock
formatString = time.TimeOfDay.Seconds % 2 == 0 ? "HH:mm" : "HH mm"
timeString = Clock | Format formatString
# Append blanks for .ss.fff
timeString = timeString + " "
gaz.CreateProtocol(address, bib, rank, timeString);
}}{{
address = "";
bib = "";
rank = "";
if Model.ReferenceTime == null
# No reference time set
time = ToTimeSpan 0
else if Model.Countdown && Model.Countdown.TotalSeconds > 0
# After Start
time = Model.Countdown
else
# Before Start
time = ToTimeSpan 0
end
timeString = gaz.Format(time, 0, true)
gaz.CreateProtocol(address, bib, rank, timeString);
}}{{
address = "";
bib = "";
rank = "";
if Model.ReferenceTime == null
# No reference time set
time = ToTimeSpan 0
else if Model.Runtime && Model.Runtime.TotalSeconds > 0
# After Start
time = Model.Runtime
else
# Before Start
time = ToTimeSpan 0
end
timeString = gaz.Format(time, 0, true)
gaz.CreateProtocol(address, bib, rank, timeString);
}}{{
address = "";
bib = "";
rank = "";
if Model.ReferenceTime == null
# No reference time set
time = Model.Clock
else if Model.Runtime && Model.Runtime.TotalSeconds > 0
# After Start
time = Model.Runtime
else
# Before Start
time = Model.Countdown
end
timeString = gaz.Format(time, 0, true)
gaz.CreateProtocol(address, bib, rank, timeString);
}}{{
address = "";
bib = "";
rank = "";
if Model.ReferenceTime == null
# No reference time set
formatString = Model.Clock.TimeOfDay.Seconds % 2 == 0 ? "HH:mm" : "HH mm"
timeString = Model.Clock | Format formatString
timeString = timeString | TrimPad 8 "Right"
timeString = timeString | TrimPad 12 "Left"
else if Model.Runtime && Model.Runtime.TotalSeconds > 0
# After Start
timeString = Model.Runtime | Format "hh:mM:SS.f"
timeString = timeString | TrimPad 10 "Right"
timeString = timeString | TrimPad 12 "Left"
else
# Before Start
timeString = Model.Countdown | Format "hh:mM:SS"
timeString = timeString | TrimPad 8 "Right"
timeString = timeString | TrimPad 12 "Left"
end
gaz.CreateProtocol(address, bib, rank, timeString);
}}