I am trying to get a meeting duration to subtract the meeting end time and with meeting start time. So far with dayjs "hours" parameter, I can get the hours difference. But I also want to get minutes duration. For example, if the meeting is less than an hour, then calculate the meeting minutes.
<Info
icon={"alarm"}
title={
meeting && meeting.start_time
? "Est. " +
dayjs(meeting.end_time).diff(
dayjs(meeting.start_time),
"hours",
) +
" hour"
: "Unavailable"
}
/>
Right now with the following code, I am getting 0 hour when the meeting is less than an hour. Can someone help me to find out how can I get hours and minutes (when is less than hour)