packages/material-ui-lab/src/internal/pickers/time-utils.ts/getMeridiem
export const getMeridiem = (date: unknown, utils: MuiPickersAdapter): Meridiem => {
  if (!date) {
    return null;
  }

  return utils.getHours(date) >= 12 ? 'pm' : 'am';
};