PureBytes Links
Trading Reference Links
|
Pierre, you state that TS5 is Y2K compliant. The following system
demonstrates the Y2K problem in TS4. I think you could put a lot of
minds at ease if you would test it on TS5 and verify that version 5 of
EL can indeed handle dates >= 2000.
----------
input: start_d(991231), add_days(1);
var: jul_date(0), greg_date(0);
if d = lastcalcdate and t = lastcalctime then begin
jul_date = datetojulian(start_d) + add_days;
greg_date = juliantodate(jul_date);
print("Start Date",start_d:8:0);
print("New Julian",jul_date:8:0);
print("New Date",greg_date:8:0);
print("*****");
end;
----------
Results of adding 1 day (TS4):
991231 -> 1000101
1001231 -> 010101
001231 -> 010101
--
Dennis
|