在vb.net中添加时间 [英] Adding Time in vb.net
本文介绍了在vb.net中添加时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个默认时间00:00:00,我有一个循环,我需要累计添加时间。
例如第一个循环我有持续时间00:00:38我需要将它添加到00:00:00然后在下一次迭代中我需要添加到新的持续时间00:00:26所以输出将是00:01 :04。
我使用visual studio 2012构建windows应用程序。
什么声明和什么过程我应该遵循这样做。
提前致谢。
I have a default time "00:00:00" and I have a loop where I need to cumulatively add Time to it.
for example first loop I have duration "00:00:38" I need to add it to "00:00:00" then in next iteration I need to add to it new duration "00:00:26" so output will be "00:01:04".
Im building windows application using visual studio 2012.
What declarations and what process should I follow to achieve this.
Thanks in advance.
推荐答案
检查 TimeSpan
结构。
或者您可以使用Timer控件。
or you may go with Timer control.
这篇关于在vb.net中添加时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文