time = Time.now.to_i % (36*60) loop do hour, rest = time.divmod(90) min = rest / 1.5 print "%02d:%02d\n" % [hour, min] time += 1.5 sleep 1.5 end
time = Time.now.to_i % (36*60) loop do hour, rest = time.divmod(90) min = rest / 1.5 print "%02d:%02d\n" % [hour, min] time += 1.5 sleep 1.5 end