print "\ec";{$_=sprintf"%02d"x3,(localtime)[2,$x=1,0];sleep 1;s#.#$x+= +4; printf"\e[%d;%dH%s$/",$_/3,$x+$_%3,(("|","_","|")[$_%3]x vec pack(v,he +x unpack"x".2*$&."a2",af099e9b39b3b789bfbb),11-$_,1)||$"for 4..11#eg;red +o}
sub w{printf"\e[%s;%sH\e[$_[0]m%s\e[15;7H%02d:%02d:%02d %02d/%02d$/",t +(( $n-3)%12),2*t($n),$r<3?".":$n,@o[2,1,0,3],$o[4]+1}print"\ec";while(sle +ep 1){@o=localtime;for$r(1..3){for$n(1..12){w}$q=$o[3-$r];$n=($r<2?$q:$q/ +5) %12||12;w 31}w}sub t{$r*($_[0]>5?-1:1)*(($d=$_[0]%6)?($d-1)%4?2:1:0)+7 +}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: time
by spartan (Pilgrim) on May 04, 2003 at 00:33 UTC | |
Re: time
by Huele-pedos (Acolyte) on May 01, 2003 at 18:18 UTC | |
Re: time
by nite_man (Deacon) on May 02, 2003 at 09:40 UTC | |
Re: time
by Skeeve (Parson) on May 02, 2003 at 06:58 UTC |