首页 \ 问答 \ 如何通过从PHP中减去当前时间的上一个时间戳来获得以分钟为单位的持续时间?(How to get duration in terms of minutes by subtracting a previous time stamp from the present time in PHP?)

如何通过从PHP中减去当前时间的上一个时间戳来获得以分钟为单位的持续时间?(How to get duration in terms of minutes by subtracting a previous time stamp from the present time in PHP?)

如何通过从PHP中减去当前时间的上一个时间戳来获得以分钟为单位的持续时间?

时间戳的格式就像

2009-12-05 10:35:28

我想计算已经过了多少分钟。 怎么做?


How to get duration in terms of minutes by subtracting a previous time stamp from the present time in PHP?

The format of time stamp is like

2009-12-05 10:35:28

I want to calculate how many minutes have passed. How to do it?


原文:https://stackoverflow.com/questions/1864675
更新时间:2023-08-15 14:08

最满意答案

想到了AgitarOne JUnit Generator 。 不过,我不确定这是你在想什么。


The AgitarOne JUnit Generator comes to mind. I'm not sure it's what you're thinking of, though.

相关问答

更多