This approach is useful to store values in the archive in the beginning of a new hour and then reset them, for example.
You can write HourBeg2() with your own logic.
Yes, i understood that already. The question is why you implemented it the condition nowDT.Minute == 1 (and not == 0) as the hour begins with for example 12:00.
Hi,
If you change it to == 0, the function may be executed before hourly data are stored in the archive. In most cases this doesn’t fit.
How do you plan to use this function?