SRL Archive - Help and Support

GetSystemTime?


dontpanic

2007-05-05 12:30:24

Hi, I have been trying to get the hour of the day using scar. The only time function i could find is GetSystemTime. I experimented with it, and have been unable to find what it returns. When i change my clock, it doesnt change, but it does increase every millisecond. Could someone explain what this does? (its definitely not the normal system time)

nielsie95

2007-05-05 14:08:39

TheTime returns the time in a string.

Bobarkinator

2007-05-05 14:10:07

I couldn't get system time to work either. Try this, it's from Freddy's Plugin I think:

program Time;
var
Hour,Minute,Second,Millisecond: Word;
begin
DecodeTime(Now,Hour,Minute,Second,Millisecond);
end.

bullzeye95

2007-05-05 14:11:47

function TheHour: String;
var
Hour, Min, Sec, MSec: Word;
begin
DecodeTime(Now, Hour, Min, Sec, MSec);
Result:= Inttostr(Hour);
end;

EDIT: Crap you beat me to it :p

dontpanic

2007-05-05 22:20:06

Awsome! thx!