timestampUtils

Created on Thu May 25 12:26:10 2017

@author: Bob Anderson

timestampUtils.convertTimeStringToTime(timeStr)

We assume the timeStr has the format [hh:mm:ss.ssss] Returns -1.0 if conversion fails, otherwise time as a float

timestampUtils.convertTimeToTimeString(time)

Convert a time (float) to string — [hh:mm:ss.ssss]

timestampUtils.improveTimeStep(outliers, deltaTime)
timestampUtils.getTimeStepAndOutliers(timestamps, tolerance=0.1)

The default tolerance is set so that it will work for Tangra which only reports 3 of the 4 digits of VTI fractional seconds