Re: using IdDayTime to get time

Giganews Newsgroups
Subject: Re: using IdDayTime to get time
Posted by:  Remy Lebeau \(TeamB\) (no.spam@no.spam.com)
Date: Thu, 17 Apr 2008

"David Edwards" <dedwar…@athens.net> wrote in message
news:06D5F24B3E50E340dedwar…@athens.net...

> I tried to find an example of IdDayTime to get the time from
> an external time server with no luck. (Delphi 2007)

That is because you are using the wrong component.

> I drop a TLabel and a TIdDayTime on a blank form and set its host
> to time.windows.com and leave the port to 15 (I tried port 1 also,
> per net time /querystnp).

TIdDayTime does not implement the SNTP protocol.  It implements the QUOTD
protocol instead.  The two are completely unrelated to each other.

Gambit

Replies

None

In response to

using IdDayTime to get time posted by David Edwards on Tue, 15 Apr 2008