comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Get time and date from a server using a socket
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Get time and date from a server using a socket [message #65367] Wed, 25 February 2009 15:26 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hello people,

I'm trying to get the time and date from a public server using this
code:

SOCKET, 1, servername, 13
date=''
READF, 1, date
CLOSE, 1
PRINT, date

I tried to get the date from all the servers that I found in the
following link: http://tf.nist.gov/tf-cgi/servers.cgi

The port 13 is the port for the daytime but I tried with 37 and 123
ports (time and NTP protocol).
I can't obtain a good result. Does anybody tried that ? Any
suggestions or comments ?

Thanks in advance,

Bernat
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Get time and date from a server using a socket
Next Topic: Re: Common x- and y-axes labels.....

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:26:04 PDT 2025

Total time taken to generate the page: 0.00449 seconds