Is there a concept of working-days in the Nodatime library?

后端 未结 1 1889
野的像风
野的像风 2021-01-14 13:10

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

相关标签:
1条回答
  • 2021-01-14 13:56

    No, this doesn't exist as you described it. However, you can certainly use Noda Time's LocalDate object and implement your own logic. An O(n) implementation would simply use LocalDate.DayOfWeek and a for loop. I'm sure one could create an O(1) implementation easily as well.

    0 讨论(0)
提交回复
热议问题