time_stamp module¶
- class time_stamp.TimeStamp(rawData=None)¶
- Bases: - object- A class to implement timestamp and related functions - Parameters
- rawData – A dict contains all messages 
 - addTime(*args)¶
- Add timestamp according to keys - Parameters
- messages (The keys of adas_v2) – 
- e.g. – 
- PROFILE_LONG_ReTr_TrffcSign_ST38 (PREDICTION_Meta_CountryCode_ST36 and) – 
 
- Returns
- Timestamp according to message keys 
- Return type
- list 
 - Examples - >>> TimeStamp.addTime('PREDICTION_Meta_CountryCode_ST36', 'PROFILE_LONG_ReTr_TrffcSign_ST38') 
 - getMinPoint()¶
- Get the minimum value of timestamp 
 - getTimeLen()¶
- Get the length of timestamp 
 - normalization()¶
- Normalize timestamp value - Call TimeStamp.getMinPoint() to calculate the minimun value of timestamp, substract it from every element of timestamp. - Returns
- The timestamp that has been normalized 
 
 - sortTime()¶
- Sort and order all value in timestamp