Forum Discussion
Split start time and end time into multiple rows based on shift
- Anonymous5 years ago
try this and let's know
Thank your for solution. I haven't yet tried with my data but it should work. Can you please walk me through your steps? I'd like to understand better for future uses. Would this work with 12h shifts for example?
try to adapt and see what is appening .
replace "08" with "12".
consider that where there is a product of 3 it is, in effect, of 24/8. In the hypothesis of two shifts of 12 hours, 24/8 becomes 24/12 = 2.
Regarding the explanation, it depends on your level of knowledge.
I can explain the basic idea of the solution or even the implementation details (there are also possibilities of different solutions using the List.generate function).
If you try to study it and then say where it is not clear to you, perhaps the explanation could be more effective.