Answer the question
In order to leave comments, you need to log in
How to make the interval from the current time -10 minutes to -50 minutes?
Where am I dumb?
echo $currentDate= date('Y-m-d H:m:s');
echo "<br>";
echo $date1 = date('Y-m-d H:m:s', time() - (60*60) );
echo "<br>";
echo $date2 = date('Y-m-d H:m:s', time() - (60*10) );
2015-10-26 15:10:25
2015-10-26 14:10:25
2015-10-26 15:10:25
$currentDate = date('Y-m-d H:m:s');
echo $currentDate;
echo "<br>";
echo $date1 = date('Y-m-d H:m:s', strtotime('-50 minutes', strtotime($currentDate)) );
echo "<br>";
echo $date2 = date('Y-m-d H:m:s', strtotime('-11 minutes',strtotime($currentDate)) );
$currentDate = date('Y-m-d H:m:s');
$dateStart = new \DateTime($currentDate);
$dateStart = $dateStart->modify('-50 minutes')->format('Y-m-d H:m:s');
$dateEnd = new \DateTime($currentDate);
$dateEnd = $dateEnd->modify('-10 minutes')->format('Y-m-d H:m:s');
echo "$currentDate <br>";
echo "$dateStart <br>";
echo "$dateEnd <br>";
они растут и радуют меня
я вырастил грибы
они растут, а остальное все фигня
@Хабиасс - Грибы
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question