hi sir/ mam
please help me im a new php developer
what is the code of military time in php?
the format is 00:00:00
thanks
what is the code of military time in php ?
Page 1 of 13 Replies - 1246 Views - Last Post: 15 January 2012 - 02:13 AM
Replies To: what is the code of military time in php ?
#2
Re: what is the code of military time in php ?
Posted 14 January 2012 - 11:27 PM
There are 24 hours in a day right? So 0100 0200 1100 1200 1300 2300 0000 etc..
#4
Re: what is the code of military time in php ?
Posted 15 January 2012 - 02:13 AM
You can use the date function to complete what you want to achieve.
As of 1:13 Am, that will output "0113"
echo date("Hi"); // H = Hours in 24-hour format w/ leading zeros; i = Minutes w/ leading zeros
As of 1:13 Am, that will output "0113"
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote







|