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"'

Reply via email to