What is the best way in Ubuntu to attach a small screen (say, 5 inches by 7 inches) -- maybe one of those digital picture frames -- and have it continually display Unix epoch time?
I'm a DB developer and always looking at timestamp columns in various backend systems. By having epoch time on my screen at all times, I can instantly tell if the timestamps in the DB are somewhat fresh or not (rather than have to look it up at the moment.)
However, the more windows I open, eventually the window with epoch time is covered -- so I'd like to have a physically separate screen (could be a repurposed mini tablet, picture frame or any other small LCD that can be " talked to" by Ubuntu
clear; while true; do echo -en "\r$(date +'%s')"; sleep 1; done
– wjandrea May 03 '17 at 16:06watch -n 1 date +%s
command running ( which will rundate +%s
every second , basically giving you epoch clock) – Sergiy Kolodyazhnyy May 03 '17 at 16:15%s
at the end of the custom time format. – wjandrea May 03 '17 at 16:16