24:00至00:00之间的区别? [英] Difference between 24:00 and 00:00?

查看:799
本文介绍了24:00至00:00之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

24:00时钟和00:00时钟之间有什么区别? IMO 24:00时钟是前一天,00:00时钟是新的一天的开始。但是我并不相信,我是最新的编程人员。

What is the difference between 24:00 clock and 00:00 clock. IMO 24:00 clock is the day before and 00:00 clock is the beginning of the new day. But I'm not really convinced and I'm new to date programming

更新:这是维基百科文章关于如何处理24的军事时间和风格指南:00和00:00混淆:<​​a href=\"http://en.m.wikipedia.org/wiki/24-hour_clock#section_1\" rel=\"nofollow\"> http://en.m.wikipedia.org / wiki / 24-hour_clock#section_1 。

Update: Here is what wikipedia article say about military time and style guide about how to deal with 24:00 and 00:00 confusion: http://en.m.wikipedia.org/wiki/24-hour_clock#section_1.

推荐答案

23:59之后到达0:00,而不是24:00
请参阅下面的代码,在php ,因为你把'php'标签:

After 23:59 comes 0:00, not 24:00 Please see the code below, in php, as you put the 'php' tag:

echo date('G:i:s', mktime(0,0,0)) . "\n" ;
echo date('G:i:s', mktime(0,0,0)-1) . "\n" ;

它将显示:

0:00:00
23:59:59

这篇关于24:00至00:00之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆