// 获取当前系统时间
let timeNow = Date()
let timeFormatter = DateFormatter()
timeFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS"
let strNowTime = timeFormatter.string(from: timeNow) as String
print(strNowTime)
// 获取当前系统时间
let timeNow = Date()
let timeFormatter = DateFormatter()
timeFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS"
let strNowTime = timeFormatter.string(from: timeNow) as String
print(strNowTime)