Re: using IdDayTime to get time

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

"David Edwards" <dedwar…> wrote in message

> 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 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.




In response to

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