在 Objective C/iPhone 中是否有与 PHP 的 strtotime 等效(或模糊相似)?
例如,strtotime 可以理解以下时间表达式(来自 php 文档):
- echo strtotime("现在"), "\n";
- echo strtotime("2000 年 9 月 10 日"), "\n";
- echo strtotime("+1 天"), "\n";
- echo strtotime("+1 周"), "\n";
- echo strtotime("+1 周 2 天 4 小时 2 秒"), "\n";
- echo strtotime("下周四"), "\n";
- echo strtotime("上周一"), "\n";