This content has been marked as final.
Show 2 replies
-
1. Re: BusinessCalendar use case
mwohlf Jun 9, 2010 11:24 AM (in response to newbeewan)The BusinessCalendar interface has the methods
Date add(Date date, String duration);
Date subtract(Date date, String duration);
so its more like the other way around, instead of getting the number of business day between start and end date you have a start date then add the number of days and get an end date.
duration syntax is in the java docs:
duration = part [',' part | 'and' part]*
part = number ['business'] unit
number = (0..9)+
unit = (y|year|years|month|months|w|week|weeks|d|day|days|h|hour|hours|min|minute|minutes|s|sec|second|seconds|milli|millis|millisecond|milliseconds) -
2. Re: BusinessCalendar use case
newbeewan Jun 10, 2010 4:13 AM (in response to mwohlf)ok, thanks, it doesn't match to my need, but I will use it for other purpose .
Regards