kongkong's Blog

No Silver Bullet --- Computer Language is just a tool.

关于ios日期与时区

| Comments

不用关心时区问题,可以通过NSDateFormat *formatter,  formatter dateFromString:

ios会将符合formatter格式的日期统一转化为0时区,然后可以通过[NSDate date]来与现在的日期做比较了。

Comments

comments powered by Disqus