Autor Beitrag
thebug
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Mo 02.06.03 19:28 
Ich will die aktuelle zeit abfragen, ich weiß das dass mit datum so geht

ausblenden Quelltext
1:
2:
3:
4:
var datum:string;
begin
datum:=FormatDateTime('dd.mm.yy',date);
end;


aber wie geht das mit der Uhrzeit???

Thanx

leon
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mo 02.06.03 19:35 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var zeit:string
begin 
datum:=FormatDateTime('hh:nn:ss',date); 
end;

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
thebug Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Mo 02.06.03 19:40 
Danke
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mo 02.06.03 19:48 
Das hättest du auch sehen können, wenn du die Hilfe zu FormatDateTime aufrufst. Ich wusste das vorher auch net. Da stehts!

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
thebug Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Mo 02.06.03 19:51 
geht aber nicht kommt immer fehlermeldung!!!
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mo 02.06.03 19:53 
Was für eine denn? Wenn die Hilfe nicht geht bist du eigentlích verloren... falls es wirklich nicht geht würde ich Delphi neu installieren.

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
thebug Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Mo 02.06.03 19:57 
da kommt immer


"Ungültiges zeichen in der Eingabedatei:''($A0)"

bei dem Code
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Button1Click(Sender: TObject);
var zeit:string; 
begin 
datum:=FormatDateTime('hh:nn:ss',date); 

end;
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Mo 02.06.03 20:17 
Hi,
versuchs mal so
ausblenden Delphi-Quelltext
1:
FormatDateTime('hh:nn:ss',now);					


:)

MfG BungeeBug
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mo 02.06.03 20:22 
Naja, aber ohne hilfe kann man doch nicht proggen... Da müsstest du ja alle funktionen genau wissen was sie machen, bzw was die Parameter bewirken.

p.S.: Das gehört doch eher in Object Pascal oda? ist ja keine Api funktion, kein Assembler und afais auch kein nonVCL

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.