6/21/10

Hitung Usia Anda sekarang

date("Y", $diff) - $base_year,
"months_total" => (date("Y", $diff) - $base_year) * 12 + date("n", $diff)
- 1, "months" => date("n", $diff) - 1, "days_total" => floor($diff_secs
/ (3600 * 24)), "days" => date("j", $diff) - 1, "hours_total" =>
floor($diff_secs / 3600), "hours" => date("G", $diff), "minutes_total"
=> floor($diff_secs / 60), "minutes" => (int) date("i", $diff),
"seconds_total" => $diff_secs, "seconds" => (int) date("s", $diff) );
}
echo '

';
$a = datediff($_POST['tgl'], date("Y/m/d/ h:m:s"));
if ($_POST['tgl']){ echo 'umur anda '.$a[years].' tahun '.$a[months].'
bulan '.$a[days].' hari '.$a[hours].' jam '.$a[minutes].' menit
'.$a[seconds].' detik';}
?>

0 comments:


shodik-qlaw. Powered by Blogger and Supported by qlaw community - bebas asalkan sopan