Startclock
Last updated
{{ StartClockTest.First.CurrentTime }}{{
# Check for any scheduled at all (either no row at all or empty starttime)
if (StartClockTest.First != null && StartClockTest.First.NextStarttime != "")
# Get current time
now = Clock
# Convert time of day to time span
starttime = ToDateTime StartClockTest.First.NextStarttime
# Calculate remaining time to start
timeRemaining = datetime.Subtract starttime now
# Output string including bib number
StartClockTest.First.NextBib + " -> " + timespan.FormatRaceResult timeRemaining "mm:ss"
else
"No one scheduled"
end
}}