php - How to get Current Hour and Minute as seperate values -


how current hour , minutes on users pc separate values in php , echo them separately?

i want echo hour , minute current in different locations.

thanks!

edit: since cant user time, lets server time.

$dt = new datetime();  echo $dt->format('h'); echo $dt->format('i'); 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -