- date: documentation ( source)
- strtotime: documentation ( source)
- fmod: documentation ( source)
<?php
$d2=1245;
$mod2 = fmod($d2,60);
$hrs2= intval($d2/60);
$jd2=intval($hrs2/24);
$Hour2=$hrs2%24;
// 24-hour time to 12-hour time
$boardtime=DATE("g:i a", STRTOTIME($Hour2.":".$mod2));