I cannot find anything official, but I saw a tutorial that says strtotime () uses GNU data input formats. These are described in detail in the GNU manual .
One mismatch that I notice is that the βnextβ is not as described in the GNU manual. Using strtotime (), "next Thursday" will give you the same result as "Thursday" if today is not Thursday.
If today is Thursday, then
- strtotime ("Thursday") == strtotime ("today")
- strtotime ("next Thursday") == strtotime ("today + 7 days")
If today is not Thursday, then
- strtotime ("Thursday") == strtotime ("next Thursday")
I am using PHP 5.2.6.
Update:
I think the user guide has been updated since I posted this, otherwise I was blind. It now contains a link to the "Date and Time Formats" section , which includes the relative formats section.
source share