Delphi - fecha y hora actual del server

 
Vista:

fecha y hora actual del server

Publicado por Maximiliano Enrique Morales Mo (50 intervenciones) el 04/06/2003 20:33:39
Como tomo la fecha y hora desde mi maquina al servidor, mi maquina cuenta con una coneccion bde y odbc para llegar al servidor
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:fecha y hora actual del server

Publicado por CARLOS (8 intervenciones) el 04/06/2003 20:48:21
No se si puedes revisarte este ejemplo que esta en la ayuda, que hace un momento lo estaba viendo.

*******************************************************

Example

To recreate this example, you will need to create a new Delphi application.

Drop a TButton, a TLabel, and a TNMDayTime1 on the form.

Place the following code into Button1's OnClick event.

procedure TForm1.Button1Click(Sender: TObject);
begin
NMDayTime1.ReportLevel := Status_Basic;
NMDayTime1.TimeOut := 5000;
NMDayTime1.Host := 'www.netmastersllc.com';
Label1.Caption := NMDayTime1.DayTimeStr;
end;

In this example, the ReportLevel property is set to Status_Basic, for basic status reporting. The TimeOut property is set for 5 seconds (5000 milliseconds). The Host property is set to 'www.netmastersllc.com', which has a DayTime server running. Finally, Label1's caption is set to the current date and time by reading the DayTimeStr property, which returns the date and time in a format determined by the server.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar