on showBeat (localDate) { local (ctz = date.getCurrentTimeZone()); local (utcDate = localDate - ctz); local (day, month, year, hour, minute, second); date.get (utcDate, @day, @month, @year, @hour, @minute, @second); local (timeInSeconds = (hour * 60 * 60) + (minute * 60) + second); local (beat = (timeInSeconds-(timeInSeconds-(mod(timeInSeconds,86400)+3600)))*10/864); while beat < 1000 { beat = beat + 1000}; beat = mod (beat, 1000); beat = string(beat); beatLength = sizeof (beat); fillChars = 3 - beatLength; beat = "@ " + string.FilledString ('0', fillChars) + beat; return(beat)}