CJ7*_*CJ7 -3 .net time datetime integer
什么.NET
功能允许时间单位之间的转换?
例如:如果我Integer
知道的是一个以分钟.NET
为单位的持续时间,那么将该数字转换为毫秒的最佳方法是什么?
Dim durationInMinutes as Integer = 10
Dim durationInMilliseconds As Integer = <???>(10); // what is the function to use here?
Run Code Online (Sandbox Code Playgroud)
int minutes = 5;
int milliseconds = TimeSpan.FromMinutes(minutes).TotalMilliseconds;
Run Code Online (Sandbox Code Playgroud)