Menu
Riverview Church

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

1611189437

NOW

1611189437

1

1611164237

1611164236
1611164177
1611160637
1611077837
1610559437
1608485837
1579541837
1582915098

1611164238
1611164297
1611167837
1611250637
1611769037
1613842637
1642700237
1646073498

1610928000
1611532800

946684800
32503680000

2

"next monday" is Monday the 25th of January 2021 at 12:00:00 AM

PHP