Jan Walraven
DevOps



Menu
Categories:
Posted on

strtotime — Parse about any English textual datetime description into a Unix timestamp


int strtotime ( string $time [, int $now = time() ] )

Examples


echo strtotime("now");
echo strtotime("10 September 2000");
echo strtotime("+1 day");
echo strtotime("+1 week");
echo strtotime("+1 week 2 days 4 hours 2 seconds");
echo strtotime("next Thursday");
echo strtotime("last Monday");
echo strtotime("tomorrow 07:00");