I’d like to know if it’s possible to simply retrieve a Unix timestamp from an external server (using NTP, I suppose). I know there’s ntpd, which will update the current system time to the time given by an NTP server, but I only want to read the timestamp. Is it possible using a Bash command in Linux? If not, I guess I’ll just have to write a Python (or something) app to get it and print it on the shell.
I’d like to know if it’s possible to simply retrieve a Unix timestamp from
Share
Some servers provide the
daytimedaemon which can give you what you want, in textual form anyway.Try:
on your favorite
SERVER.Example transcript: