php - set variable to the current time and date symfony2 -
i want set variable $time current time , date following format: hh:mm:ss on day/month/year.
could me in symfony?
have tried built-in date function?
$time = date('h:i:s \o\n d/m/y'); this should work until 2038 :) both o , n need escaped, have special meaning within format string.
Comments
Post a Comment