🌤️ 加载中...
#
IOS 2019-03-22

IOS开发笔记-取系统时间拼凑任意格式

By Jove 1 Views 1 MIN READ 0 Comments

func time_six()->String {
let now = NSDate()
let dformatter = DateFormatter()
dformatter.dateFormat = "yyMMdd" //yyyy-MM-dd HH-mm-ss
let time_six_string = (dformatter.string(from: now as Date))
return time_six_string
}

本文由 Jove 原创

采用 CC BY-NC-SA 4.0 协议进行许可

转载请注明出处:https://www.jozxing.cc/index.php/archives/1556/

TAGS: 无标签

相关推荐

  • 暂无相关推荐,看看别的吧。

0 评论