比较给定时间与系统时间 [英] comparing given time to system time
本文介绍了比较给定时间与系统时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想比较一下我的时间是否比系统时间少6小时>
I want to compare if mytime is 6 hour less than system time or not>
$mytime="9:10";
$sysdate=date('h:i');
我如何比较它们?
在此先感谢
how can I compare them??
thanks in advance
推荐答案
mytime = " ;
mytime="9:10";
sysdate = date( h:i' );
sysdate=date('h:i');
我如何比较它们?
在此先感谢
how can I compare them??
thanks in advance
尝试一下:
Try this:
<?php
这篇关于比较给定时间与系统时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文