File tree Expand file tree Collapse file tree
dConnectDevicePlugin/dConnectDeviceLinking/dConnectDeviceLinking/Classes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ + (void) setAtmosphericPressure:(float)atmosphericPressure target:(DConnectMessa
3030+ (void ) setTimeStamp : (long )timeStamp target : (DConnectMessage *)message
3131{
3232 [message setLong: timeStamp forKey: DConnectAtmoshpericPressureProfileParamTimeStamp];
33- [message setString: [DPLinkingUtil timeStampToString : timeStamp] forKey: DConnectAtmoshpericPressureProfileParamTimeStampString];
33+ [message setString: [DConnectRFC3339DateUtils stringWithTimeStamp : timeStamp] forKey: DConnectAtmoshpericPressureProfileParamTimeStampString];
3434}
3535
3636@end
Original file line number Diff line number Diff line change @@ -22,6 +22,5 @@ typedef void (^DPLinkingUtilTimerCancelBlock)(void);
2222+ (int ) floatToInt : (float )value fraction : (int )fraction exponent : (int ) exponent sign : (BOOL )sign ;
2323+ (float ) intToFloat : (int )value fraction : (int )fraction exponent : (int ) exponent sign : (BOOL )sign ;
2424
25- + (NSString *) timeStampToString : (long )timeStamp ;
2625
2726@end
Original file line number Diff line number Diff line change @@ -217,12 +217,4 @@ + (float) intToFloat:(int)value fraction:(int)fraction exponent:(int) exponent s
217217 return integer + decimal;
218218}
219219
220- + (NSString *) timeStampToString : (long )timeStamp
221- {
222- NSDate *date = [NSDate dateWithTimeIntervalSince1970: timeStamp];
223- NSDateFormatter *formatter = [[NSDateFormatter alloc ] init ];
224- [formatter setDateFormat: @" YYYY-MM-dd hh:mm:ss" ];
225- return [formatter stringFromDate: date];
226- }
227-
228220@end
You can’t perform that action at this time.
0 commit comments