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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -