string format(
string
$format)
|
|
Date pretty printing, similar to strftime()
Formats the date in the given format, much like strftime(). Most strftime() options are supported.
formatting options:
%Y
year as decimal including century (range 0000 to 9999)
%m
month as decimal number (range 01 to 12)
%d
day of month (range 00 to 31)
%H
hour as decimal number (00 to 23)
%M
minute as a decimal number (00 to 59)
%S
seconds as a decimal number (00 to 59)
%%
literal '%'
Parameters: