Is there any way to get milliseconds from Delphi 4? Something like
formatdatetime('YYYY/MM/DD HH:NN:SS:---',now); where --- is the
milliseconds field???
I'd like to be able to use milliseconds with some fields in SQL Server 7.
Thanks!
var
Hour, Min, Sec, MSec: Word;
begin
DecodeTime(Time, Hour, Min, Sec, MSec);
end;
:) I know. I plead temporary insanity. I used ttimestamp.
Thanks!
-John_...@Brown.EDU
Try GetTickCount. Returns number of miliseconds since Windows started.
niLLer
Unit
Sysutils
Category
date/time routines
procedure DecodeTime(Time: TDateTime; var Hour, Min, Sec, MSec: Word);
Description
DecodeTime breaks the object specified as the Time parameter into hours,
minutes, seconds, and milliseconds.
or use EncodeTime to reverse
"JonnyCabŽ" wrote:
> Hola,
>
> Is there any way to get milliseconds from Delphi 4? Something like
>