Can you round a .NET TimeSpan object?

后端 未结 10 867
渐次进展
渐次进展 2020-12-03 03:01

Can you round a .NET TimeSpan object?

I have a Timespan value of: 00:00:00.6193789

Is there a simple way to keep it a TimeSp

10条回答
  •  自闭症患者
    2020-12-03 03:49

    Not sure about TimeSpan, but you might check this post on DateTimes:
    http://mikeinmadison.wordpress.com/2008/03/12/datetimeround/

提交回复
热议问题