Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tgl_awal = date('H:i');
- $tgl_akhir = date('H:i',strtotime('23:39'));
- $hasil = date_diff(date_create($tgl_akhir),date_create($tgl_awal));
- dd($hasil);
- $jam = $hasil->h;
- $jam = $jam*60;
- $menit = $hasil->i;
- // dd($menit);
- $total = $jam + $menit;
- // dd($total);
- $sisa = $total / 10;
- dd(floor($sisa));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement