Calendar getDate With Negative Duration
Multi platform library to read and write schedule data
Brought to you by:
joniles
I'm having problems with negative lags (leads). I'm gathering predecessors and attempting to calculate the appropriate "lag date." So, for example, if I have a F-S link with a 3 day lag, I'd take the predecessors finish, and add 3 days of lag.
To do this, I tried using Calendar.getDate. The problem I have is that getDate fails to take negative durations into account. Am I missing something? Is there a simpler/better way to apply a Duration to a Date? Otherwise, I would think we could modify getDate to work with negative durations?
To clarify, I'm getting negative lags (leads) and cannot get the correct date from a given date and negative duration. The positive duration lags are calculating fine.
Think that wraps it up. Excuse my ignorance.
Last edit: Wes Lund 2020-01-02
Just tidying up old issues, but to confirm thatthe getDate method in the most recent MPXJ releases should handle both positive and negative values correctly.