-3

.NET時間単位間の変換を可能にする関数は何ですか?

例:Integer時間を分単位で表すことがわかっている場合.NET、その数値をミリ秒に変換するための最良の方法は何ですか?

Dim durationInMinutes as Integer = 10
Dim durationInMilliseconds As Integer = <???>(10);  // what is the function to use here?
4

1 に答える 1

5
int minutes = 5;
int milliseconds = TimeSpan.FromMinutes(minutes).TotalMilliseconds;
于 2012-11-15T07:13:51.973 に答える