On Fri, 2009-02-13 at 10:22 -0700, Alvin ONeal wrote:
> So heres an interesting tidbit for you all, in case you didn't hear.
> Unix time will be hitting 1234567890 at 4:31:30 (MST) today. 0
> corresponds to Jan. 1st 1970. It's nothing important other than
> interesting.
> 
> watch -n 1 date +%s
> 
> watch -n 1 'd=$(date +%s); o=$((1234567890 - ${d})); echo "now=${d};
> remaining=${o}"'
> <sjansen> watch -n 1 'd=$(date +%s); r=$((1234567890 - $d)); h=$(($r /
> 3600)); s=$(($r - $h * 3600)); m=$(($s / 60)); s=$(($s - $m * 60));
> printf "%10d\n%10d\n%02d:%02d:%02d" "$d" "$r" "$h" "$m" "$s"'
> 
AJ, you've taught me a new command... watch.  Thanks!  I've fulfilled
my "learn something new every day" requirement for today.

Rubin
-- 
Rubin Bennett
rbTechnologies, LLC
80 Carleton Boulevard
East Montpelier, VT 05651

(802)223-4448
http://thatitguy.com

"Think for yourselves and let others enjoy the privilege to do so too."
  Voltaire, Essay on Tolerance
  French author, humanist, rationalist, & satirist (1694 - 1778)

Reply via email to