Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set time start and end with php script

Tags:

date

php

time

I'd like to range from 8 to 9 am and within 20 minutes with my views on the table 8,8:20,8:40:9 Now this is what I generally do so should Try and display Start and end time and the limited time of database calls

$nowtime = "15:45";
$endtime="17:45";
echo $nowtime;
$date =date("g:i",strtotime($nowtime . ' + 5 minute'),$endtime);
echo "<br>".$date; 

then print one record how can print start and end time

like image 295
MehranK Avatar asked Dec 12 '25 23:12

MehranK


1 Answers

  <?php
    $start = microtime(true);

    //Your Script Content here

    $end = microtime(true);
    $time = number_format(($end - $start), 2);

    echo 'This page loaded in ', $time, ' seconds';
  ?>
like image 200
Ferrakkem Bhuiyan Avatar answered Dec 15 '25 13:12

Ferrakkem Bhuiyan