|
|
|
|
|
|
Function strtotime | Language: PHP
|
Syntax
| strtotime(TimeDateString) |
Parameters
| STRING | TimeDateString | English textual datetime description. |
Return value
Description
Returns the number of seconds since January 1 1970 00:00:00 GMT.
This function is useful to do time and date comparisons. |
PHP Sample Code
echo(strtotime("now"));
echo(strtotime("15 January 2007"));
echo(strtotime("2007-01-15 10.00pm"));
echo(strtotime("2007-01-15 10:00:00"));
echo(strtotime("+1 day"));
echo(strtotime("+1 week"));
echo(strtotime("+1 week 2 days 4 hours 2 seconds")); |
|
|
|