Jump to content

Date Minus 10 mins


onlyican

Recommended Posts

Hey people

 

I am storing Date Time in the mySQL Table in the following format

 

Y-m-d H:i:s

(This is

2007-19-03 10:56:01)

 

I want to check if that Date Time is within 10 minutes of NOW

How would I do this?

 

Its ok if the date time is as is above.

But if now is

2007-19-03 00:03:04

(3 Minutes past midnight)

 

That means having to then check Date -1

 

Any pre-built functions for this?

Link to comment
https://forums.phpfreaks.com/topic/43334-date-minus-10-mins/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.