Menu Samaritan's Purse

STRTOTIME

Parse about any English textual datetime description into a Unix timestamp

SYNTAX

strtotime ( string $time [, int $now = time() ] ) : int

PARAMETERS

time

A date/time string. Valid formats are explained in Date and Time Formats.

now

The timestamp which is used as a base for the calculation of relative dates.

RETURN

Returns a timestamp on success, FALSE otherwise.

EXAMPLES

TIME

1603913520

NOW

1603913520

1

1603888320

1603888319
1603888260
1603884720
1603801920
1603283520
1601296320
1572265920
1575639181

1603888321
1603888380
1603891920
1603974720
1604493120
1606566720
1635424320
1638797581

1603670400
1604275200

946684800
32503680000

2

"next monday" is Monday the 2nd of November 2020 at 12:00:00 AM

PHP