C# - Duration between two DateTimes in minutes

后端 未结 9 1074
醉话见心
醉话见心 2020-12-16 11:58

I need to determine duration between two DateTimes in minutes.

However, there is a slight twist:

  • exclude weekends
  • only count minutes which a
9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 12:19

    Use TimeSpan.TotalMinutes, subtract non-business days, subtract superfluous hours.

提交回复
热议问题