GMT time on iPhone

后端 未结 7 1109
清歌不尽
清歌不尽 2020-12-13 22:37

How do I get GMT time?

NSDate *c =[NSDate date];

gives system time, not GMT.

相关标签:
7条回答
  • 2020-12-13 23:18

    NSDate stores the time zone internally -- there are a few functions you can call and pass in a target timezone if you jsut want a string representation of the date, see apple's documentation

    0 讨论(0)
提交回复
热议问题