|
@@ -78,7 +78,11 @@ end ;
|
|
function MSecsToTimeStamp(MSecs: comp): TTimeStamp;
|
|
function MSecsToTimeStamp(MSecs: comp): TTimeStamp;
|
|
begin
|
|
begin
|
|
result.Date := Round(msecs / msecsperday);
|
|
result.Date := Round(msecs / msecsperday);
|
|
|
|
+{$IFDEF VIRTUALPASCAL}
|
|
|
|
+ msecs:= msecs-result.date*msecsperday;
|
|
|
|
+{$ELSE}
|
|
msecs:= comp(msecs-result.date*msecsperday);
|
|
msecs:= comp(msecs-result.date*msecsperday);
|
|
|
|
+{$ENDIF}
|
|
result.Time := Round(MSecs);
|
|
result.Time := Round(MSecs);
|
|
end ;
|
|
end ;
|
|
|
|
|
|
@@ -311,7 +315,11 @@ var
|
|
df:string;
|
|
df:string;
|
|
d,m,y:word;
|
|
d,m,y:word;
|
|
n,i:longint;
|
|
n,i:longint;
|
|
- c:word;
|
|
|
|
|
|
+{$IFDEF VIRTUALPASCAL}
|
|
|
|
+ c:longint;
|
|
|
|
+{$ELSE}
|
|
|
|
+ c:word;
|
|
|
|
+{$ENDIF}
|
|
dp,mp,yp,which : Byte;
|
|
dp,mp,yp,which : Byte;
|
|
s1:string[4];
|
|
s1:string[4];
|
|
values:array[1..3] of longint;
|
|
values:array[1..3] of longint;
|
|
@@ -414,7 +422,12 @@ var
|
|
|
|
|
|
function GetElement: integer;
|
|
function GetElement: integer;
|
|
var
|
|
var
|
|
- j: integer; c: word;
|
|
|
|
|
|
+ j: integer;
|
|
|
|
+ {$IFDEF VIRTUALPASCAL}
|
|
|
|
+ c: longint;
|
|
|
|
+ {$ELSE}
|
|
|
|
+ c: word;
|
|
|
|
+ {$ENDIF}
|
|
begin
|
|
begin
|
|
result := -1;
|
|
result := -1;
|
|
Inc(Current);
|
|
Inc(Current);
|
|
@@ -715,7 +728,10 @@ end;
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.9 2003-01-18 23:45:37 michael
|
|
|
|
|
|
+ Revision 1.10 2003-09-06 21:52:24 marco
|
|
|
|
+ * commited.
|
|
|
|
+
|
|
|
|
+ Revision 1.9 2003/01/18 23:45:37 michael
|
|
+ Fixed EncodeDate/Time so they use TryEncodeDate/Time
|
|
+ Fixed EncodeDate/Time so they use TryEncodeDate/Time
|
|
|
|
|
|
Revision 1.8 2002/12/25 01:03:48 peter
|
|
Revision 1.8 2002/12/25 01:03:48 peter
|