I wish to display a clock on the channel, which is running for 1 minute, showing hour, minutes and seconds, and then stop.

I made an alias, but not how to take the result identifier $clock.

Code:
If ($1 == !clock) { msg # This is my clock: $clock( ) }

alias clock {
  var %n = 1
  while (%n >= ???) {
    .timer 1 $calc(1* %n)  var %clock = $asctime(HH:nn:ss)
    return %clock
  }
  inc %n
}
 


I know this code is wrong, but it was what I tried to do.