packages/material-ui-lab/src/internal/pickers/time-utils.ts/getSecondsInDay
export function getSecondsInDay(date: unknown, utils: MuiPickersAdapter) {
  return utils.getHours(date) * 3600 + utils.getMinutes(date) * 60 + utils.getSeconds(date);
}