计算一分钟的时差 [英] calculate time difference in mintues

查看:114
本文介绍了计算一分钟的时差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有两个时间字段动态生成格式为m / d / y H:m。

有人可以给我看看一个很好的函数来计算时间间隔

的分钟差异?我玩了strtotime(),但只有

给了我几小时的差异,只有当时间在同一天

(用date()函数包装后) 。 TIA

Hello,

I have 2 time fields dynamically generated in format "m/d/y H:m".
Could someone show me a good function to calculate the time interval
difference in minutes? I played with strtotime() but but that only
gave me difference in hours and only if the times were on the same day
(after wrapping with date() function). TIA

推荐答案

< st *********** @ gmail.comwrote in message

新闻:e3 ********************************** @ v39g2000 pro.googlegroups.com ...
<st***********@gmail.comwrote in message
news:e3**********************************@v39g2000 pro.googlegroups.com...

你好,


我有2个时间字段动态生成格式为m / d / y H:m。

有人能告诉我一个很好的函数来计算时间间隔

以分钟为单位的差异?我玩了strtotime(),但只有

给了我几小时的差异,只有当时间在同一天

(用date()函数包装后) 。 TIA
Hello,

I have 2 time fields dynamically generated in format "m/d/y H:m".
Could someone show me a good function to calculate the time interval
difference in minutes? I played with strtotime() but but that only
gave me difference in hours and only if the times were on the same day
(after wrapping with date() function). TIA



函数dateDiff(

function dateDiff(


firstDate,
firstDate,


secondDate,
secondDate,


这篇关于计算一分钟的时差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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