我怎么知道昨天是不是? [英] How can I tell if a time was yesterday?
问题描述
有一段时间我想知道它是今天还是昨天,(
服务器)。
我不能使用时间差,因为如果我记录时间是23:59
我再次检查24:01那么事实上,早些时候是昨天的b $ b。
所以给定时间$ a和时间$ b如何计算$ a是否是当天$>
之前$ b?
谢谢
FFMG
-
''网站管理员论坛''( http://www.httppoint.com )| ''免费博客''
( http://www.journalhome。 com / )| ''网站管理员目录''
( http://www.webhostshunter。 com / )
''娱乐车辆保险''
( http://www.insurance-owl.com/other/car_rec.php )| ''免费网址
重定向服务''( http://urlkick.com/ )
------------------------------------- -----------------------------------
FFMG的简介:< a rel =nofollowhref =http://www.httppoint.com/member.php?userid = 560target =_ blank> http://www.httppoint.com/member.php?userid=580
查看此主题: http://www.httppoint.com/showthread.php?t=19402
通过网站管理员论坛发帖子消息 http://www.httppoint.com ,(广告收益分享)。
Hi,
Given a time I want to know if it is today or yesterday, (on the
server).
I cannot use time difference because if I log the time and it is 23:59
and I check again at 24:01 then the earlier time is, in fact,
yesterday.
so given time $a and time $b how can I calculate if $a is the day
before $b?
Thanks
FFMG
--
''webmaster forum'' (http://www.httppoint.com) | ''Free Blogs''
(http://www.journalhome.com/) | ''webmaster Directory''
(http://www.webhostshunter.com/)
''Recreation Vehicle insurance''
(http://www.insurance-owl.com/other/car_rec.php) | ''Free URL
redirection service'' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG''s Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=19402
Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).
推荐答案
a和时间
b如何计算
a是当天
之前
a is the day
before
这篇关于我怎么知道昨天是不是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!