Skip to content
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

Is ProjectCalendar.getDate(startDate, duration, returnNextWorkStart) working correctly? #8

Open
andrebaaij opened this issue Oct 21, 2015 · 2 comments

Comments

@andrebaaij
Copy link

I was wondering if the function ProjectCalendar.getDate(Date startDate, Duration duration, boolean returnNextWorkStart) is working correctly. The description states:

It takes account of working hours in each day, non working and calendar exceptions.

I would have thought that the function would not allocate hours for days with DayType.NON_WORKING, it however does allocate hours on non working days in the tests I performed.

@joniles
Copy link
Owner

joniles commented Oct 22, 2015

Can you provide a simple test case? Thanks!

@andrebaaij
Copy link
Author

Here is an attached example where the wednesday is not a working day. here
is some pseudo code as an example:

result = ProjectCalendar.getDate(any tuesday after working hours ex. 8:00
pm, 1h, false)

expected result would be the next thursday 8:00 am, as the wednesday is a
non working day.

actual result is wednesday morning 8:00 am.

Some details might be off but I hope my point comes across. if not I can
write a working example in C#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants