RosettaCodeData/Task/Draw-a-clock/Raku/draw-a-clock-3.raku
2023-12-16 21:33:55 -08:00

10 lines
276 B
Raku

print "\e7";
loop {
my $time = DateTime.now;
put '#' x $_ ~ '.' x (24 - $_) given $time.hour.round;
put '#' x $_ ~ '.' x (60 - $_) given $time.minute.round;
put '#' x $_ ~ '.' x (60 - $_) given $time.second.round;
sleep 1;
print "\e8";
}
END put "\n";