Current Time in DateTime PHP -


is correct way current time in php using datetime?

$currenttime = new datetime(); $currenttime2 = $currenttime->format('h:i:s'); 

i believe can this

$date = date('y-m-d h:i:s'); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -