实际时间为24小时制? [英] 24 hour format for the actual time?
本文介绍了实际时间为24小时制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获取实际的日期和时间,并将其(时间)转换为24小时格式(例如: 15/04/2017 13:32:02
)
I would like to get the actual date + time, and convert it (the time) to a 24 hour format (e.g: 15/04/2017 13:32:02
)
我当前的代码是:
date_default_timezone_set("Asia/Magadan");
$date = date("d/m/Y h:i:s");
echo $date;
该显示:
15/04/2017 01:32:02
谢谢。
推荐答案
将h大写字母输入24小时格式的date( d / m / YH:i:s);
Put the h capital for 24 hour format date("d/m/Y H:i:s");
这篇关于实际时间为24小时制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文