您可以像这样使用date函数中的本地化字符串…
extension NSDate { func localizedStringTime()->String { return NSDateFormatter.localizedStringFromDate(self, dateStyle: NSDateFormatterStyle.NoStyle, timeStyle: NSDateFormatterStyle.ShortStyle) }}
您可以像这样使用date函数中的本地化字符串…
extension NSDate { func localizedStringTime()->String { return NSDateFormatter.localizedStringFromDate(self, dateStyle: NSDateFormatterStyle.NoStyle, timeStyle: NSDateFormatterStyle.ShortStyle) }}