Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 20.09.02 19:24 
Hallo !!!
Bei Indy ist ja eine Kompo zur Zeit sycronisation mit dem Internet dabei.
Kann mir jemand ein kleinens Beispiel oder einen Codeschnipsel geben, der die aktuelle Zeit von einem Zeitserver läd, und dann meine systemzeit anpasst ??


PS: Wir dabei dann auch die Zeitverschiebung berücksichtigt ??

_________________
In the beginning was the word.
And the word was content-type: text/plain.
SpeedyGTD
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Fr 20.09.02 20:53 
ich hab das mal in nem Prog von mir eingebaut, die Zeitverschiebung musst du selber einstellen, da weiss ich nix drüber ob das auch automatisch geht, probiers mal damit
ausblenden Quelltext
1:
2:
NMTime1.Host:=Edit3.Text;
S1:=NMTime1.TimeStr;

S1 ist ne Stringvariable
und bei Edit3 gibt man den ZeitServer an, ich hab da standardmäßig
ausblenden Quelltext
1:
time.nist.gov					

als Text, probiers mal aus.

_________________
...hab ich vergessen ;)
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 20.09.02 21:59 
danke !!! ich werds mal testen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.