strftime

strftime

(PHP 4, PHP 5, PHP 7)

strftimeFormat a local time/date according to locale settings

Description

string strftime ( string $format [, int $timestamp = time() ] )

Format the time and/or date according to locale settings. Month and weekday names and other language-dependent strings respect the current locale set with setlocale().

Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP's strftime().