发表于:2006-04-10 13:53:00
楼主
histdata设置:
——————————————————————
HDWStartDate = HTGetTimeStringAtScooter( HistTrend.Name, HistTrend.UpdateCount, 1, HistTrend.ScooterPosLeft, "Date" );
HDWStartTime = StringMid( StringFromTime( HTGetTimeAtScooter( HistTrend.Name, HistTrend.UpdateCount, 1, HistTrend.ScooterPosLeft),3),12,8);
HDWDBDir = "D:\我的文档\MY INTOUCH APPLICATIONS\NEWAPP1";
HDWDataDir = HTGetLogDirectory();
HDWFilename = HDWFilename;
HDWTemp = "$Date,$Time";
IF HTGetPenName( HistTrend.Name, 1, 1 ) <> "" THEN
HDWTags = HDWTemp + "," + HTGetPenName( HistTrend.Name, 1, 1 );
ENDIF;
HDWInterval = TEST_LOG_UPDATE_TIME+"s";
HDWDuration = TEST_LOG_TOTAL_TIME+"H";
HDWWriteFile=1;
——————————————————
但是生成的excel文件的时间和实际时间不一致,比如系统时间($date)为2006-04-05,在excel里的时间为2004-05-06,why?我也知道intouch的起始时间为70/1/1,而excel是1900/1/1,但是如何才能使excel的时间与系统一直?谢谢◎