var date = NSDate.date() var timeFormatter = NSDateFormatter() timeFormatter.dateFormat = "MM-dd ‘at‘ HH:mm:ss" var time = timeFormatter.stringFromDate(date) as String
时间: 2024-11-14 12:55:45
var date = NSDate.date() var timeFormatter = NSDateFormatter() timeFormatter.dateFormat = "MM-dd ‘at‘ HH:mm:ss" var time = timeFormatter.stringFromDate(date) as String