1. 程式人生 > >iOS獲取自1970年毫秒數

iOS獲取自1970年毫秒數

NSTimeInterval nowtime = [[NSDatedate] timeIntervalSince1970]*1000;

longlong theTime = [[NSNumbernumberWithDouble:nowtime] longLongValue];

NSString *curTime = [NSStringstringWithFormat:@"%llu",theTime];

javaSystem.currentTimeMillis()