【发布时间】:2018-05-24 16:55:32
【问题描述】:
【问题讨论】:
-
如果您有简单的字符串“2017 年 12 月 13 日”来转换为日期,那么时区的位置是什么?
-
@Hexfire 我需要在该时区为该日期字符串生成纪元时间戳,而不考虑设备的本地时区并将其发送到服务器。
-
好的,我认为下面你有一个很好的解决方案
标签: ios swift nsdate nsdateformatter nsdatecomponents