Is there a concept of working-days in the Nodatime library?
What I would like to do is to somehow state that there is 5 working-days in a calender week, and then be able to ask something like:
From [any given date] + 10 working-days what is the end date?
or
From [this calender date] to [that calender date] how many working-days are in that interval?
No, this doesn't exist as you described it. However, you can certainly use Noda Time's
LocalDate
object and implement your own logic. AnO(n)
implementation would simply useLocalDate.DayOfWeek
and afor
loop. I'm sure one could create anO(1)
implementation easily as well.