← All docs
strftime()
Formats a local timestamp with locale-aware specifiers. Deprecated since PHP 8.1.
strftime()
function strftime(string $format, ?int $timestamp = null): mixed
Formats a local timestamp with locale-aware specifiers. Deprecated since PHP 8.1.
Parameters:
$format(string)$timestamp(?int), defaultnull, optional
Returns: mixed
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how strftime is implemented in the compiler, see the internals page.