Handle negative time spans

前端 未结 9 602
不知归路
不知归路 2020-12-30 18:50

In my output of a grid, I calculate a TimeSpan and take its TotalHours. e.g.

(Eval(\"WorkedHours\") - Eval(\"BadgedHours\")).TotalH         


        
9条回答
  •  梦谈多话
    2020-12-30 19:41

    Isn't there a TimeSpan.Duration method? I think this would handle what you are trying to do.

提交回复
热议问题