-
Notifications
You must be signed in to change notification settings - Fork 196
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
Discrepancy Between Hour of Last Element Produced from maya.intervals(...) for Different Start and End Times #159
Comments
I found the source of my confusion. The seconds part of I can see why the code was written this way, but it seems like something that others are likely to have trouble with. Also, I can't think of a way to improve it other than documenting this. Perhaps we need a way of doing intervals by the hour/day/month etc in addition to by the second. Perhaps something using cron-like language... |
Couldn't you just use start and end times which are precise to an hour? Without any minutes / seconds parts?
Would you like to do that? Since you ran into it and figured it out you might be just the person for the task :) |
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
First of all, thanks for your work on this great library. I think I found a bug. When I run the following script:
I get the output:
As you can see the behaviour is inconsistent: the hour of
end1
is 12 and the hour of the last element oftests1
is 11 (different), whereas the hour ofend2
is 3 and the hour of the last element oftests2
is 3 (the same). I don't imagine this is how things are supposed to work - can anyone reproduce this?The text was updated successfully, but these errors were encountered: