16 lines
308 B
Bash
16 lines
308 B
Bash
|
|
#!/bin/bash
|
||
|
|
# compare_local_time_fast.sh
|
||
|
|
# 20260516 ChatGPT
|
||
|
|
# $Header$
|
||
|
|
#
|
||
|
|
# Faster/lighter infinite local time display.
|
||
|
|
#
|
||
|
|
# Example:
|
||
|
|
# chmod 755 compare_local_time_fast.sh
|
||
|
|
# ./compare_local_time_fast.sh
|
||
|
|
|
||
|
|
while true
|
||
|
|
do
|
||
|
|
printf "Local time: %s\n" "$(date '+%Y-%m-%d %H:%M:%S.%3N %Z')"
|
||
|
|
sleep 0.2
|
||
|
|
done
|