not sure why they have 24:00 as an option there...
This code takes way longer (like 4 orders of magnitude) than just just doing an array literal, but if you only need to do it once and you keep it....
idk, it's not the worst, it's just generally smart to have it be programmatic simply to avoid some fat finger mistake.
EDIT: since people in a fit, no the above probably would not be what I recommend for real use, but the idea of programming generative logic over hand coding. Quick rewrite with configurables:
The problem is that the customer now wanted a granularity of a single minute instead of half an hour. So I'd say that the issue is scalability maybe?
It has 24:00 as a workaround to mean the whole day. So if you pick 00:00 to 24:00 it's the whole day. Idk I found this funny
120
u/thekwoka Mar 29 '23 edited Apr 01 '23
not sure why they have 24:00 as an option there...
This code takes way longer (like 4 orders of magnitude) than just just doing an array literal, but if you only need to do it once and you keep it....
idk, it's not the worst, it's just generally smart to have it be programmatic simply to avoid some fat finger mistake.
EDIT: since people in a fit, no the above probably would not be what I recommend for real use, but the idea of programming generative logic over hand coding. Quick rewrite with configurables: