showtime.bat

The following batch file displays the current date and time by first looking at the response header received from querying a website (curl), then querying an outside NTP server (using Windows command w32tm).

@echo off

set path=%PATH%;%~dp0

@echo on

curl -s --head "http://www.hko.gov.hk" | findstr -i "Date:"

w32tm /stripchart /computer:time.hko.hk /dataonly /samples:1

You can download curl.exe (Window$ binary of Curl) from: https://curl.haxx.se/download.html