Indy 9
TIdDayTime
Hierarchy, Properties, Methods, Events, See Also, Unit: IdDayTime
Implements a TCP-based DayTime protocol client.
TIdDayTime = class(TIdTCPClient)
Unit
IdDayTime
Description
TIdDayTime implements the DayTime protocol (RFC 867) as a client. This protocol is simply where a DayTime server sends the current day and time in a human readable format and is sometimes used for debugging.

If you need a time-synchronization solution, we recommend that you use the Time protocol encapsulated by TIdTime, TIdTimeUDP, TIdTimeServer, and TIdTimeUDPServer.


TIdDayTime.DayTimeStr
TIdDayTime
Retrieves the Date and Time from a server.
property DayTimeStr: String;
Description
DayTimeStr is a String property that cause the component to connect to the Host server and retrieve the date and time. Since this can be returned in a free-form format, this is not converted to a TDateTime and there is no time synchronization performed.

You must set the Host property to the DayTime server before using this property.


TIdDayTime.Port
TIdDayTime, See Also
Represents the port number used by the DayTime protocol.
property Port: integer;
Description
Port is an Integer property redefined in TIdDayTime to specify the default value used for the DayTime protocol. Port is assigned the default value IdPORT_DAYTIME in the Creaqte constructor. Port is used when the value in DayTimeStr is accessed, and the connection to the DayTime server is opened to read the value of the DayTimeStr property.

TIdDayTime.Create
TIdDayTime, See Also
Instantiates a TIdDayTime instance.
constructor Create(AOwner: TComponent); override;
Parameters
AOwner: TComponent
Owner of the object instance.
Description
Create constructs a properly initialized instance of TIdDayTime using the inherited Create constructor, and initializes Port to the constant value IdPORT_DAYTIME (Decimal 13) as required by the DayTime Protocol.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.