PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $dt1 = new DateTime(); $dt2 = new DateTime('-1 year'); $diff = $dt2->diff($dt1); $value = (((($diff->m || $diff->y ? $diff->days : $diff->d) * 24) + $diff->h) * 60 + $diff->i) * 60 + $diff->s; echo ($value); echo (abs(-1));
Show:  
Copy Clear