8000 Is ProjectCalendar.getDate(startDate, duration, returnNextWorkStart) working correctly? · Issue #8 · joniles/mpxj · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@andrebaaij

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.

Activity

  1. joniles commented on Oct 22, 2015

    @joniles
    Owner

    Can you provide a simple test case? Thanks!

  2. andrebaaij commented on Oct 26, 2015

    @andrebaaij
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0