Function __global->strtotime
Definitions
sources_custom/phpstub.php
- Parse about any English textual datetime description into a UNIX timestamp.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $time | string | No | No | required parameter | N/A | N/A | The subject |
| $now | ?TIME | No | No | Null | N/A | N/A | The timestamp to find times relative to (null: now) |
Returns
- The timestamp (-1: failed)
- Type: TIME
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Parse about any English textual datetime description into a UNIX timestamp.
*
* @param string $time The subject
* @param ?TIME $now The timestamp to find times relative to (null: now)
* @return TIME The timestamp (-1: failed)
*/
function strtotime(string $time, ?int $now = null) : int
* Parse about any English textual datetime description into a UNIX timestamp.
*
* @param string $time The subject
* @param ?TIME $now The timestamp to find times relative to (null: now)
* @return TIME The timestamp (-1: failed)
*/
function strtotime(string $time, ?int $now = null) : int

