Gets the time of day from a server.
wntRemoteTime( server-name, format)
(s) server-name: the UNC name of a server (eg, "\\SERVER1"), or a blank string ("") to indicate the local machine.
(i) format: specifies the format in which the time will be returned. See below.
(s) server time: format of return value depends on which format was specified.
"format" can be one of the following values:
Value |
Format |
1 |
UTC/GMT time, in YYYY:MM:DD:hh:mm:ss format |
2 |
local time (on local machine), in YYYY:MM:DD:hh:mm:ss format |
; Load Appropriate Extender AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')
srvtime = wntRemoteTime( "\\server", 1) Message("Current server time", srvtime ) Exit