Home > PHP > Function > Date/Time > strftime()

strftime()

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

Syntax

string strftime ()

Arguments

-

Description

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().

Version

PHP 4, 5

Return value

Returns a string formatted according format using the given timestamp or the current local time if no timestamp is given. Month and weekday names and other language-dependent strings respect the current locale set with setlocale().