PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Convert and Time Difference   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Convert and Time Difference
Spell the time difference between now and one day
Author: By
Last change: Apply fixes from StyleCI
Date: 6 years ago
Size: 326 bytes
 

Contents

Class file image Download
<?php


// for starting time
$start = microtime(true);
require_once
'init.php';

$time = '1505099050'; // time();

echo friendly_time($time);
echo
'<br>';
echo
time_object()->NormalTime();
echo
'<br>';

// for ending time
$end = microtime(true);

//now calculate execution time of script
echo execution_time($start, $end, 5);