Objective-C, How can I get the current date in UTC timezone?

前端 未结 0 1793
旧时难觅i
旧时难觅i 2020-12-23 07:47

I am trying:

NSDate *currentDateInLocal = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@\"yyy         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题