[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to Make ASCII file with correct Date



PureBytes Links

Trading Reference Links

Ok, didn't know about the accuracy limitations.

Convert the date to a string, test the length (990101 is 6 long, 1000101 is
7).
Remove the 1 from 100,101 (string length 7).
Prepend the string with either 19 or 20.
Output to ascii.

That should do a much better job.
Robert
===============================
Robert Linders
Orlando, FL
email: mugsnug@xxxxxxxxx
===============================
----- Original Message -----
From: "Gary Fritz" <fritz@xxxxxxxx>
To: "Robert Linders" <mugsnug@xxxxxxxxx>
Cc: <omega-list@xxxxxxxxxx>
Sent: Wednesday, November 28, 2001 11:24 AM
Subject: Re: Need to Make ASCII file with correct Date


> > Just yesterday I posted an asii indicator (creates an ascii file).
> > Instead of date just output date + 19000000 and it will have the
> > compleat year !
>
> Try it.  You might not like the results.
>
> TS (all versions) uses 16-bit floating point numbers to represent
> all numeric values.  16-bit floats have about 6.5 - 7 decimal digits
> of accuracy.  YYYYMMDD requires 8.  That's one of the big reasons why
> Omega decided to use the 100 = 2000 date format.
>
> For example:
>
> Date      Date+19000000
> 1011119   20011120
> 1011120   20011120
> 1011121   20011120
> 1011126   20011126
> 1011127   20011128
>
> Gary
>
>