(PHP 3>= 3.0.12, PHP 4 >= 4.0b2)
strtotime --
Parse about any english textual datetime description into a UNIX
timestamp
Description
int strtotime
(string time [, int
now])
The function expects to be given a string containing an english
date format and will try to parse that format into a UNIX
timestamp.
Example 1. Strtotime() examples
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";
|
|