开发者

strtotime -> NSDate

is there a way to convert strtotime-like Strings (e.g.: '-3 days' with a 开发者_JAVA百科given date) with NSDate?


See NSDate's +dateWithNaturalLanguageString:. I'm not sure how much "natural language" is supported (such as the "-3 days" example you give), but it's your best bet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜