1import moment from 'moment';
2
3export const getTimesArray = () => {
4 const hours = Array.from({
5 length: 48
6 }, (_, hour) => moment({
7 hour: Math.floor(hour / 2),
8 minutes: (hour % 2 === 0 ? 0 : 30)
9 }).format('HH:mm')
10 );
11 return hours;
12}