From 7cd0ec6602044358cc6d96605662688fe93bdd90 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 13 Dec 2001 00:44:47 +0000 Subject: [PATCH] strtotime: parameter time behaves according to gnu date syntax, added link to gnu man page. Also, there are a few additional valid inputs, document them at a later date :) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64878 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/datetime.xml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/functions/datetime.xml b/functions/datetime.xml index efce24ff41..7d095c265c 100644 --- a/functions/datetime.xml +++ b/functions/datetime.xml @@ -1,5 +1,5 @@ - + Date and Time functions Date/time @@ -1111,10 +1111,19 @@ print (strftime ("%A.\n")); - + The function expects to be given a string containing an English date format and will try to parse that format into a UNIX timestamp. Upon failure, -1 is returned. + + + Since strtotime behaves according to GNU + date syntax, have a look at the GNU manual page titled + Date Input Formats. + Described there is valid syntax for the time + parameter. + + <function>strtotime</function> examples