February 2013
Intermediate to advanced
538 pages
20h 55m
English
strtotime
int strtotime(stringtime[, inttimestamp])
Converts an English description of a time and date into a Unix
timestamp value. Optionally, a timestamp
can be given that the function uses as the “now” value; if this value
is omitted, the current date and time is used. Returns false if the value could not be converted
into a valid timestamp.
The descriptive string can be in a number of formats. For example, all of the following will work:
echostrtotime("now");echostrtotime("+1 week");echostrtotime("-1 week 2 days 4 seconds");echostrtotime("2 January 1972");
Read now
Unlock full access