(PHP 3>= 3.0.12, PHP 4 >= 4.0.0)
strtotime --
英文形式の日付をUNIXタイムスタンプに変換する
説明
int strtotime
(string time, int
[now])
この関数は英文形式の日付を含む文字列が指定されることを期待してお
り、その形式からUNIXタイムスタンプへの変換を試みます。
例 1strtotime()の例
echo strtotime ("now") . "\n";
echo strtotime ("10 September 2000") . "\n";
echo strtotime ("+1 day") . "\n";
echo strtotime ("+1 week") . "\n";
echo strtotime ("+1 week 2 days 4 hours 2 seconds") . "\n";
|
|