+ (
NSDate
*)dateWithTimeIntervalInMilliSecondSince
1
9
7
0
:(
double
)timeIntervalInMilliSecond {
NSDate
*ret =
nil
;
double
timeInterval = timeIntervalInMilliSecond;
// judge if the argument is in secconds(for former data structure).
if
(timeIntervalInMilliSecond >
1
4
0
0
0
0
0
0
0
0
0
0
) {
timeInterval = timeIntervalInMilliSecond /
1
0
0
0
;
}
ret = [
NSDate
dateWithTimeIntervalSince1970
:timeInterval];
return
ret;
}