fichaje automatico y escaneo

This commit is contained in:
amazuecos
2025-05-05 00:47:00 +02:00
parent fb7f2a28d9
commit 305eea00e6
19 changed files with 821 additions and 25 deletions

View File

@ -10,7 +10,17 @@ function float_seconds_to_hhmm_string(?float $time):?string
}
return $time_str;
}
function float_seconds_to_hhmmss_string(?float $time): ?string
{
$time_str = null;
if ($time !== null) {
$hours = floor($time / 3600);
$minutes = floor(($time % 3600) / 60);
$seconds = floor($time % 60);
$time_str = sprintf("%02d:%02d:%02d", $hours, $minutes, $seconds);
}
return $time_str;
}
function week_day_humanize(int $week_day,bool $upper = false) : string
{
$week_days = ["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];