3 ms·
curl -A Mozilla -s --head "https://google.com/"|grep -Ei ^date or curl -A Mozilla -s --head "https://facebook.com/"|grep -Ei ^date # since they are using
by LinuxBender 3y ago
curl -A Mozilla -s --head "https://google.com/"|grep -Ei ^date
or
curl -A Mozilla -s --head "https://facebook.com/"|grep -Ei ^date # since they are using soon to be NTPv5
Does it have to be a site I stood up? If so the same could be accomplished installing any web server with a blank or default page. This also assumes I have NTP in sync.
Another option would be to enable anonymous ssh and then:
ssh anon@some.host 'date;cal -3'
Or just output that via cron to a text file served by a simple web server with cache controls that prevent caching more than a few seconds.
Time results: Using curl took a couple seconds but I could make it an alias. If I had to install a web server on a VM somewhere and didn't already have one it might take 10 to 20 seconds. Or I could forego the web server and just make Chronyd public as there were no client restrictions mentioned.