本文介绍了PHP日期时间当前时间添加分钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的问题,但这在浪费我的时间.

Simple question but this is killing my time.

有什么简单的解决方案可以使用GMT + 8在php中将当前时间增加30分钟?

Any simple solution to add 30 minutes to current time in php with GMT+8?

推荐答案

我认为最好和最简单的解决方案之一是:

I think one of the best solutions and easiest is:

strtotime("+30 minutes")

也许它不是最有效的,但却是更容易理解的之一.

Maybe it's not the most efficient but is one of the more understandable.

这篇关于PHP日期时间当前时间添加分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 09:08
查看更多