Time filtering through multiple arrays in Typescript
Budget: €8 – €30 EUR
Hi,
We need a function for filtering time, i.e. free hours and minutes, during working time hours in Typescript.
Technically have three arrays, the first is the working hours (which should be filtered based on the numbers from the other two arrays), the second contains all the beginnings of the terms and the third the endings of the same terms.
Example:
Work time from 9AM to 17PM.
First term one from 14:15PM to 16:00PM
Second term one from 9:00AM to 11:00AM
Third term one from 13:00PM to 15:00PM
Example of arrays:
workHours = [9, 10, 11...16]
workMinutes = [0, 5, 10, 15, 20...45, 50, 55]
startTime = ['14:15', '9:00', '13:00'...]
endTime = ['16:00', '11:00', '15:00'...]
Results for this example after filtering:
filteredWorkHours = [11, 12, 16 ]
+ need us a filtered workMinutes array for every number in filteredWorkHours array
This is just example of one situation, you can have different length and terms number for both startTime and endTime arrays. Only workMinutes array is always same before filtering.
Required Skils: typescript, javascript, algorithms, data structure...
We need a function for filtering time, i.e. free hours and minutes, during working time hours in Typescript.
Technically have three arrays, the first is the working hours (which should be filtered based on the numbers from the other two arrays), the second contains all the beginnings of the terms and the third the endings of the same terms.
Example:
Work time from 9AM to 17PM.
First term one from 14:15PM to 16:00PM
Second term one from 9:00AM to 11:00AM
Third term one from 13:00PM to 15:00PM
Example of arrays:
workHours = [9, 10, 11...16]
workMinutes = [0, 5, 10, 15, 20...45, 50, 55]
startTime = ['14:15', '9:00', '13:00'...]
endTime = ['16:00', '11:00', '15:00'...]
Results for this example after filtering:
filteredWorkHours = [11, 12, 16 ]
+ need us a filtered workMinutes array for every number in filteredWorkHours array
This is just example of one situation, you can have different length and terms number for both startTime and endTime arrays. Only workMinutes array is always same before filtering.
Required Skils: typescript, javascript, algorithms, data structure...