声明变量只是时间 [英] Declare variable for just time
本文介绍了声明变量只是时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要创建一个包含格式为hh时间的变量:毫米,我怎能做到这一点。
I need to create a variable that contains time in the format hh:mm, how shall I do that?
DateTime currentTime = "00:00";
似乎没有这样的伎俩。我需要在一个循环加时/分该变量,并保持其格式为HH:MM。这怎么办呢?
doesnt seem to do the trick. I need to add hours/minutes in a loop to that variable and keep the format "hh:mm". How is that done?
/ M
推荐答案
可能使用时间跨度
是什么?
这篇关于声明变量只是时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文