+(long64) CurTimeMilSec:(NSString*)pstrTime
{
NSDateFormatter *pFormatter= [[NSDateFormatter alloc]init];
[pFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSDate *pCurrentDate = [pFormatter dateFromString:pstrTime];
return [pCurrentDate timeIntervalSince1970] * 1000;
}
/**
* 将时间字符串转化成毫秒
*
* @param pstrTime 时间字符串
*
* @return 转化成毫秒的字符串
*/
网友评论