?目標C/iPhone中PHP的strtotime目標C/iPhone中是否有與PHP的strtotime等效(或者模糊相似)的目標C/iPhone
的strtotime例如可以瞭解以下時表達式(從PHP文檔):
- 回波的strtotime( 「現在」), 「\ n」 個;
- echo strtotime(「2000年9月10日」),「\ n」;
- echo strtotime(「+ 1 day」),「\ n」;
- echo strtotime(「+ 1 week」),「\ n」;
- echo strtotime(「+ 1 week 2 days 4 hours 2 seconds」),「\ n」;
- echo strtotime(「next Thursday」),「\ n」;
- echo strtotime(「last Monday」),「\ n」;
我想你和邁克爾錯過了這一點,因爲你不需要知道輸入格式(這是strtime的設計)。 只是我猜測答案是「沒有等價的」。 – Jonny 2010-08-06 06:53:49
好Objective-C不是像PHP這樣的腳本語言,所以它不能做你想做的事情。 答案是 - 有一個等價的,但它是一個靜態類型的等價物,它有點冗長。 – Matt 2010-08-06 08:40:39