Link to home
Start Free TrialLog in
Avatar of Munim
Munim

asked on

Booting Date and Time

Hello Experts,
   I would like to know, how to retrive the date and time of when this computer started. I can figure out how many days, hours, minutes, seconds passed after computer has started by using the API GetTickCount... But the fact is, how can I figure out the date and time when this computer turned on...

Thank You
Avatar of fb132
fb132

procedure bla()
var
dates := String;
hours := String;
begin

dates := dateToStr(Now);
hours := timeToStr(Now);

end;
ASKER CERTIFIED SOLUTION
Avatar of Russell Libby
Russell Libby
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Munim

ASKER

I would have rated your code Excellent, if you've provided me, NON-VCL solution... But still, I've done it in the way to do it... (NON-VCL)...

Thank You

Munim
Munim,

If the coding provided works, why did you grade a C?

Grading at Experts Exchange isn't like grading in school. It's a lot closer to the way the US Department of Agriculture grades meat; everything is Prime unless it isn't, in which case it's Choice or Select.

You should always give an A unless you have a good reason to grade less. For example, if you asked for more information and you didn't get it, or the expert only gave you a starting point and you still had to do most of the grunge work yourself, then a B is acceptable

A C grade is particularly unacceptable if the person simply posted their suggestion as a comment. After all, you are not obliged to accept a comment as the answer. You should always give an Expert a chance to raise a grade before giving a C.

Another thing you might want to consider is that a lot of our top experts check an asker's grading record. If they see that an asker habitually grades questions with "B"s or even "C"s they would be very reluctant to give their help. With your current record, you might find it difficult to get good and timely answers.

Netminder
EE Admin