Login   Register  
PHP Classes
elePHPant
Icontem

File: ejemplo_horas.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stiven castillo  >  Horas Laborales  >  ejemplo_horas.php  >  Download  
File: ejemplo_horas.php
Role: Example script
Content type: text/plain
Description: ejemplo
Class: Horas Laborales
Calculate the number of worked hours between dates
Author: By
Last change:
Date: 1 year ago
Size: 256 bytes
 

Contents

Class file image Download
<?php 
    $tiempo 
= new Timework();
    
$f $tiempo->calcular('2013-08-08 09:30:00''2013-08-08 11:30:00');
    echo 
"Minutos ".$f['minutos']."<br>";
    echo 
"horas ".$f['horas']."<br>";
    echo 
"dias ".$f['dias']."<br>";
    echo 
"meses ".$f['meses']."<br>";
?>