AnsweredAssumed Answered

Converting seconds to date string with timespan

Question asked by Syncrude on Feb 28, 2019
Latest reply on Feb 28, 2019 by Syncrude



I need to convert seconds to a start and endtime for use with timerange.  tagTimes is a long integer array with start and endtimes.  The code is as follows:



new AFTime(tagTimes[i,0]);


new AFTime(tagTimes[i, 1]);


AFValues values = point.RecordedValues(timeRange, OSIsoft.AF.Data.AFBoundaryType.Inside, filterExpression, false);


I am getting an error when this code is executed.  How can I convert the seconds to a datestring?


Any help/advice is appreciated!  Apologies if I violated any rules for posting code...!