SRL Archive - OSR Help

getting systems time


Feroc1ty

2011-02-28 13:41:01

how can you get systems time, not as in how long the system been up but as in the what on earth is the time the computer says ive fucked around with the functions a bit but gave up, this was my last attempt right here but it keeps returning 0's for all of the variables

pls dont post *suggestions* on what *should* work because i tried everything that *should* work and need something that *definetly* works

you dont have to write any code just point me in the right direction

function GetTimeString:string;
var h,m,s,ms:word;
time:TDateTime;
begin
time := Date;
DecodeTime( Date, h,m,s,ms);
writeln(h);
end;

anonymity

2011-02-28 13:57:32

Hey, this what you want?

http://villavu.com/forum/showthread.php?t=62502

Rich

2011-02-28 14:02:40

WriteLn(TheTime);
Needs SRL included.

Feroc1ty

2011-02-28 14:02:41

thanks, EXACTLY what I was looking for!