勤務時間計算 退勤時間→秒 出勤時間→秒 退勤時間 − 出勤時間 秒 → 勤務時間 select sec_to_time(time_to_sec(taikin) - tiem_to_sec(syutukin)) from kintai;