开发者

strtotime -> NSDate

开发者 https://www.devze.com 2023-01-04 01:34 出处:网络
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 langua

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

精彩评论

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