-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time Pattern Boundaries not handled correctly #78
Comments
Thank you! I will fix it today. |
I believe your expectations are not entirely correct, but I think I know what you mean. For example in the first example you say you expect |
I think I know the reason for the misunderstanding. For you, hour 1 corresponds to 00:00 to 01:00. For me, that's hour 0. Hours, minutes, and seconds are zero-based, whereas month and day are one-based (in my book). I guess it's okey to make everything 1-based. I will go with that. |
Something done, please let me know... |
That may be the reason for part of it, but not for the halving of the values |
That's right, I meant it that way. Both the shifting and the halving should be fixed now. |
Nice one, thanks for that. 2000-01-01T00:00:00 0 2000-01-01T00:00:00 280 |
I think before we close, we just need to make a final effort to write in the documentation what we decided here, that all intervals are 1-based and inclusive. |
When using time patterns, the boundaries do not appear to be handled correctly.
E.g. if I write
H1-2 0
H3-5 100
H6-24 0.
I expect the value of 100 to apply for hours 3, 4 and 5 and then zero otherwise. Instead what is happening is that I get 50 for hour 3, 100 for hour 4 and 5, and 50 for hour 6.
I believe what is happening is that somehow, in the above example, it thinks the hour 3 has the value 0 and the value 100 (perhaps).
The attached project zip file illustrates the problem
TimePatterns.zip
Using the following time pattern :
Results in the following
I am expecting:
Using this time pattern
Results in this
The text was updated successfully, but these errors were encountered: