<?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>"; ?>
info at phpclasses dot org