|Subject:||Re: using IdDayTime to get time|
|Posted by:||Remy Lebeau \(TeamB\) (firstname.lastname@example.org)|
|Date:||Thu, 17 Apr 2008|
"David Edwards" <dedwar…@athens.net> 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 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.
using IdDayTime to get time posted by David Edwards on Tue, 15 Apr 2008