PHP Classes

File: examples/date_getdiff.php

Recommend this page to a friend!
  Classes of Everton da Rosa   XtPHP   examples/date_getdiff.php   Download  
File: examples/date_getdiff.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 10 years ago
Size: 227 bytes
 

Contents

Class file image Download
<?php

require '../date.php';

$data1 = XtDate::parseDate('01/01/2011', 'dd/mm/aaaa');
$data2 = time();

echo
"<p>".XtDate::getDiff($data1, $data2)."</p>";
echo
"<p>".XtDate::getDiff($data1, $data2, 'mes', 'dia')."</p>";



?>