Web Analytics

PHP strptime() Function

Date/Time FunctionPHP 5+

The strptime() function parses a time/date generated with strftime().

Warning: This function has been DEPRECATED as of PHP 8.1.0. Relying on this function is highly discouraged. Use date_parse_from_format() instead.

Syntax

strptime(string $timestamp, string $format): array|false

Try It Online

Output
Click Run to execute your code

Related Functions

  • strftime() - Format a local time/date according to locale settings