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

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -